Skip to content

Commit 72c0521

Browse files
authored
Merge pull request scalative#177 from scalative/maint/update-tested-python-versions
Fix non-deterministic test
2 parents 15e1a49 + 4c5addf commit 72c0521

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

dev_requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ refactordoc
33
sphinx
44
sphinx-rtd-theme
55
wheel
6+
tox

haas/tests/test_runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ def test(result):
8383
simplefilter.assert_called_once_with('always')
8484
filterwarnings.assert_called_once_with(
8585
'module', category=DeprecationWarning,
86-
message='Please use assert\w+ instead.')
86+
message=r'Please use assert\w+ instead.')
8787

8888
def test_init_from_args(self):
8989
# Given
9090
parser = ArgumentParser()
9191
BaseTestRunner.add_parser_arguments(parser, None, None)
9292

9393
# When
94-
args = parser.parse_args()
94+
args = parser.parse_args([])
9595
runner = BaseTestRunner.from_args(args, None)
9696

9797
# Then

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,11 @@ def write_version_py(filename='haas/_version.py'):
147147
'Programming Language :: Python :: 2.6',
148148
'Programming Language :: Python :: 2.7',
149149
'Programming Language :: Python :: 3',
150+
'Programming Language :: Python :: 3.3',
150151
'Programming Language :: Python :: 3.4',
151152
'Programming Language :: Python :: 3.5',
153+
'Programming Language :: Python :: 3.6',
154+
'Programming Language :: Python :: 3.7',
152155
'Topic :: Software Development',
153156
'Topic :: Software Development :: Testing',
154157
],
@@ -184,5 +187,7 @@ def write_version_py(filename='haas/_version.py'):
184187
':python_version=="3.3"': py33_requires,
185188
':python_version=="3.4"': py34_requires,
186189
':python_version=="3.5"': py34_requires,
190+
':python_version=="3.6"': py34_requires,
191+
':python_version=="3.7"': py34_requires,
187192
},
188193
)

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py26,py27,py33,py34,py35,pypy
2+
envlist = py26,py27,py33,py34,py35,py36,py37,pypy
33

44
[testenv]
55
deps = -rtest_requirements.txt

0 commit comments

Comments
 (0)