Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7c13278

Browse files
committed
Don't change existing test set.
1 parent b484dcb commit 7c13278

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

.travis.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ env:
55
- secure: RgJI7BBL8aX5FTOQe7xiXqWHMxWokd6GNUWp1NUV2mRLXPb9dI0RXqZt3UJwKTAzf1z/OtlHDmEkBoTVK81E9iUxK5npwyyjhJ8yTJmwfQtQF2n51Q1Ww9p+XSLORrOzZc7kAo6Kw6FIXN1pfctgYq2bQkrwJPRx/oPR8f6hcbY=
66
- secure: E7OCdqhZ+PlwJcn+Hd6ns9TDJgEUXiUNEI0wu7xjxB2vBRRIKtZMbuaZjd+iKDqCKuVOJKu0ClBUYxmgmpLicTwi34CfTUYt6D4uhrU+8hBBOn1iiK51cl/aBvlUUrqaRLVhukNEBGZcyqAjXSA/Qsnp2iELEmAfOUa92ZYo1sk=
77

8-
- TEST_COMMAND="python ../matplotlib/tests.py -sv --processes=8 --process-timeout=300"
8+
- TEST_ARGS=--no-pep8
99

1010
before_script:
1111
- gem install travis-artifacts
@@ -20,16 +20,8 @@ python:
2020

2121
matrix:
2222
include:
23-
- python: 2.6
24-
25-
- python: 2.7
26-
27-
- python: 3.3
28-
29-
- python: 3.4
30-
3123
- python: 2.7
32-
env: TEST_COMMAND="nosetests matplotlib.tests.test_coding_standards"
24+
env: TEST_ARGS=--pep8
3325

3426
install:
3527
- pip install -q --use-mirrors nose python-dateutil numpy pep8 pyparsing pillow
@@ -46,7 +38,7 @@ script:
4638
# Generate the font caches in a single process before starting the
4739
# multiple processes
4840
- python -c "from matplotlib import font_manager"
49-
- $(TEST_COMMAND)
41+
- python ../matplotlib/tests.py -sv --processes=8 --process-timeout=300 $(TEST_ARGS)
5042

5143
after_failure:
5244
- tar cjf result_images.tar.bz2 result_images

lib/matplotlib/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,11 +1325,12 @@ def tk_window_focus():
13251325
'matplotlib.tests.test_basic',
13261326
'matplotlib.tests.test_bbox_tight',
13271327
'matplotlib.tests.test_cbook',
1328+
'matplotlib.tests.test_coding_standards',
13281329
'matplotlib.tests.test_collections',
13291330
'matplotlib.tests.test_colorbar',
13301331
'matplotlib.tests.test_colors',
13311332
'matplotlib.tests.test_compare_images',
1332-
'matplotlib.tests.test_contour',
1333+
'matplotlib.tests.test_contour',t
13331334
'matplotlib.tests.test_dates',
13341335
'matplotlib.tests.test_delaunay',
13351336
'matplotlib.tests.test_figure',
@@ -1386,9 +1387,10 @@ def test(verbosity=1):
13861387
# a list.
13871388
multiprocess._instantiate_plugins = [KnownFailure]
13881389

1389-
success = nose.run( defaultTest=default_test_modules,
1390-
config=config,
1391-
)
1390+
success = nose.run(
1391+
defaultTest=default_test_modules,
1392+
config=config,
1393+
)
13921394
finally:
13931395
if old_backend.lower() != 'agg':
13941396
use(old_backend)

tests.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# these options.
1111

1212
import os
13+
import sys
1314
import time
1415

1516
import matplotlib
@@ -39,4 +40,9 @@ def run():
3940
defaultTest=default_test_modules)
4041

4142
if __name__ == '__main__':
43+
if '--no-pep8' in sys.argv:
44+
default_test_modules.remove('matplotlib.tests.test_coding_standards')
45+
elif '--pep8' in sys.argv:
46+
default_test_modules = ['matplotlib.tests.test_coding_standards']
47+
4248
run()

0 commit comments

Comments
 (0)