Skip to content

Commit 6d2c325

Browse files
committed
TEST: PYTHONHASHSEED=0, to stabilize test order
Dictionaries in Python < 3.6 are not ordered by insertion
1 parent 9495b52 commit 6d2c325

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

nipype/info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def get_nipype_gitversion():
153153
if sys.version_info <= (3, 4):
154154
REQUIRES.append('configparser')
155155

156-
TESTS_REQUIRES = ['pytest-cov', 'codecov', 'pytest-xdist']
156+
TESTS_REQUIRES = ['pytest-cov', 'codecov', 'pytest-xdist', 'pytest-env']
157157

158158
EXTRA_REQUIRES = {
159159
'doc': ['Sphinx>=1.4', 'numpydoc', 'matplotlib', 'pydotplus', 'pydot>=1.2.3'],

nipype/pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
norecursedirs = .git build dist doc nipype/external tools examples src
33
addopts = --doctest-modules -n auto
44
doctest_optionflags = ALLOW_UNICODE NORMALIZE_WHITESPACE
5+
env =
6+
PYTHONHASHSEED=0

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ funcsigs
1212
configparser
1313
pytest>=3.0
1414
pytest-xdist
15+
pytest-env
1516
mock
1617
pydotplus
1718
pydot>=1.2.3

0 commit comments

Comments
 (0)