Merge branch 'py37777777'

This commit is contained in:
2019-03-10 10:35:38 +01:00
3 changed files with 3 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ cache:
python: python:
- "2.7" - "2.7"
- "3.5" - "3.5"
- "3.7"
install: install:
- pip install tox-travis - pip install tox-travis
- sh get_testdata.sh - sh get_testdata.sh

View File

@@ -257,7 +257,7 @@ def read_VMP_modules(fileobj, read_module_data=True):
while True: while True:
module_magic = fileobj.read(len(b'MODULE')) module_magic = fileobj.read(len(b'MODULE'))
if len(module_magic) == 0: # end of file if len(module_magic) == 0: # end of file
raise StopIteration break
elif module_magic != b'MODULE': elif module_magic != b'MODULE':
raise ValueError("Found %r, expecting start of new VMP MODULE" % module_magic) raise ValueError("Found %r, expecting start of new VMP MODULE" % module_magic)

View File

@@ -1,5 +1,5 @@
[tox] [tox]
envlist = py27,py35 envlist = py27,py35,py37
[testenv] [testenv]
deps=nose deps=nose
commands=nosetests commands=nosetests