8000 Merge pull request #9409 from Kojoley/tst-fix-flaky-tests-order · matplotlib/matplotlib@2455768 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2455768

Browse files
authored
Merge pull request #9409 from Kojoley/tst-fix-flaky-tests-order
TST: Fix flaky tests order
2 parents 0385ee9 + fe16e14 commit 2455768

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

.appveyor.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ environment:
1818
# Workaround for https://github.com/conda/conda-build/issues/636
1919
PYTHONIOENCODING: UTF-8
2020
PYTEST_ARGS: -rawR --timeout=300 --durations=25 --cov-report= --cov=lib -m "not network"
21-
PYTHONHASHSEED: 0 # Workaround for pytest-xdist flaky collection order
22-
# https://github.com/pytest-dev/pytest/issues/920
23-
# https://github.com/pytest-dev/pytest/issues/1075
2421

2522
matrix:
2623
# for testing purpose: numpy 1.8 on py2.7, for the rest use 1.10/latest

ci/travis/test_script.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ set -ev
1414
if [[ $DELETE_F BECC ONT_CACHE == 1 ]]; then
1515
rm -rf ~/.cache/matplotlib
1616
fi
17-
# Workaround for pytest-xdist flaky collection order
18-
# https://github.com/pytest-dev/pytest/issues/920
19-
# https://github.com/pytest-dev/pytest/issues/1075
20-
export PYTHONHASHSEED=$(python -c 'import random; print(random.randint(1, 4294967295))')
21-
echo PYTHONHASHSEED=$PYTHONHASHSEED
2217

2318
echo The following args are passed to pytest $PYTEST_ARGS $RUN_PEP8
2419
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then

lib/matplotlib/tests/test_colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ def test_pandas_iterable():
617617
assert_array_equal(cm1.colors, cm2.colors)
618618

619619

620-
@pytest.mark.parametrize('name', cm.cmap_d)
620+
@pytest.mark.parametrize('name', sorted(cm.cmap_d))
621621
def test_colormap_reversing(name):
622622
"""Check the generated _lut data of a colormap and corresponding
623623
reversed colormap if they are almost the same."""

0 commit comments

Comments
 (0)
0