Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

WIP: issue #5325, convert from nose to pytest#5405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
pizzathief wants to merge174 commits intomatplotlib:masterfrompizzathief:5325
Closed
Changes from1 commit
Commits
Show all changes
174 commits
Select commitHold shift + click to select a range
4c39e53
ENH: use pytest instead of nose.
pizzathiefOct 31, 2015
f10a36b
pytest.raises(), not pytest.raise()
pizzathiefNov 4, 2015
c17005b
pytest.raises() calls needed some massaging
pizzathiefNov 4, 2015
1a75b75
replace nose with pytest in INSTALL
pizzathiefNov 4, 2015
b123ed7
altering more assert_equal calls.
pizzathiefNov 4, 2015
5f433fb
fixing up problems with assert, and the use of messages.
pizzathiefNov 5, 2015
cfb8d71
flake8 failures
pizzathiefNov 5, 2015
89d3366
flake8 doesn't like blank lines at ends of files.
pizzathiefNov 5, 2015
887e482
flake8 fixes
pizzathiefNov 5, 2015
8f16316
fixed syntax errors
pizzathiefNov 5, 2015
b56297f
just have it on one line
pizzathiefNov 5, 2015
df4e413
fix errors highlighted in travis CI logs
pizzathiefNov 5, 2015
defa65d
fixing reported test failures, reported by pytest on travis.
pizzathiefNov 5, 2015
b8b3909
fixing pytest failures. Interesting that assert can't seem to handle
pizzathiefNov 5, 2015
5fd4351
fixing syntax failures
pizzathiefNov 5, 2015
47c968b
Force travis to install pytest, and plugins
pizzathiefNov 5, 2015
1b509c1
get travis to run py.test instead of nose.
pizzathiefNov 6, 2015
432e9e8
small pep8 fix to force travis to build
pizzathiefNov 6, 2015
60b038c
lets see if indenting a comment fixes the problem
pizzathiefNov 6, 2015
2984d44
give py.test the install location of the module, rather
pizzathiefNov 7, 2015
e27451d
forgot to remove the bad py.test call.
pizzathiefNov 7, 2015
784fdf8
force pytest-pep8 to ignore the pep8 warnings that
pizzathiefNov 7, 2015
f035db7
temporarily adding more items to be ignored by pep8,
pizzathiefNov 7, 2015
1e7b62c
trying out --pyargs as requested, also removing pep checks,
pizzathiefNov 7, 2015
56d99ed
tests.py should now act more like the old nose version did,
pizzathiefNov 8, 2015
7d38aa3
lets try the 'gdb python tests.py' method again.
pizzathiefNov 8, 2015
7bbc04a
the switches that nose needed , make pytest fail, so lets
pizzathiefNov 8, 2015
05da48a
pytest.main doesn't like --pyargs now? it used to..
pizzathiefNov 9, 2015
98b1e69
Adding in all tests to the list, including argv[1:]
pizzathiefNov 13, 2015
6853e71
seems --processes=2 and --process-timeout=300
pizzathiefNov 13, 2015
105a15d
replace assert_raises with pytest.raises
pizzathiefNov 13, 2015
5482cc7
another assert_raises to replace with pytest.raises
pizzathiefNov 13, 2015
4a8caad
replace assert_raises with pytest.raises
pizzathiefNov 13, 2015
8985c35
Fixing errors that appear before testing starts
pizzathiefNov 13, 2015
789f864
replaced a nose function for known failing tests
pizzathiefNov 13, 2015
4900796
updating basic tests that are know to fail with
pizzathiefNov 14, 2015
0633576
add the ability to only run pep8 tests. remove commented out means
pizzathiefNov 18, 2015
47ef9f0
ass civerage report as standard
pizzathiefNov 18, 2015
2a7637c
no need for the nose pep8 tests, so remove from tests.py
pizzathiefNov 18, 2015
08ae5ef
pep8 and non-pep8 tests act better now. taking out
pizzathiefNov 25, 2015
bd0c061
remove more of the nose infrastructure
pizzathiefNov 27, 2015
42e7ae1
Pass the exit code of pytest.main back to the shell.
pizzathiefDec 13, 2015
86820be
replace nose decorator with pytest code.
pizzathiefDec 13, 2015
37c67c2
whoops, deleted an 'a' from a variable while doing
pizzathiefDec 13, 2015
84359ac
fix up a bunch of pytest.raises calls.
pizzathiefDec 13, 2015
c76bef9
found 'assert_less' calls to replace
pizzathiefDec 13, 2015
2e58461
found a space and comma char that had attempted an escape of the faci…
pizzathiefDec 13, 2015
517b232
found some assert_equal statements to convert.
pizzathiefDec 13, 2015
9aee1fc
converted assert_raises calls to pytest.raises.
pizzathiefDec 13, 2015
91f3032
more assert_raises calls to replace
pizzathiefDec 13, 2015
86f7264
Thanks to QuLogic , using decorator form of pytest.raises for
pizzathiefDec 13, 2015
f7e7401
more conversions of pytest.raises to use 'with' instead.
pizzathiefDec 13, 2015
6f935ce
change nose method for calling test class methods.
pizzathiefDec 14, 2015
72ddc43
fixing pep8 failures.
pizzathiefDec 14, 2015
2d71f19
more pep8 fixes.
pizzathiefDec 14, 2015
571fbbd
another testing class that needed changes for pytest.
pizzathiefDec 14, 2015
50b0e0a
more pep8 failures to hide under the rug.
pizzathiefDec 14, 2015
4408d10
another pytest.raises to fix.
pizzathiefDec 14, 2015
4e87b72
lets try not comparing the equivilance of empty dicts, but rather
pizzathiefDec 14, 2015
6d3bb58
if commenting out the nose pep8 functions work, then they
pizzathiefDec 14, 2015
4bfbf26
pep8 fixes.
pizzathiefDec 14, 2015
1ffc9c2
fix typos found QuLogic
pizzathiefDec 14, 2015
389ebc3
removing (and moving) import code in tests.py
pizzathiefDec 15, 2015
1f1c2a6
replacing new nose calls with plain asserts
pizzathiefDec 15, 2015
01df455
exclude files from pep8 checking
pizzathiefDec 15, 2015
bb3ab51
add support for running a single test module, instead of all of them
pizzathiefDec 21, 2015
73e9383
The "_name.py" files in exclude_files might need globbing to
pizzathiefDec 28, 2015
5f3255b
pep8 failures
pizzathiefDec 28, 2015
f4826c3
pep8 was demanding that lambdas be replaced with proper functions.
pizzathiefDec 28, 2015
08ce37b
This is hopefully an acceptable solution to the problem with
pizzathiefDec 28, 2015
f705680
pep8 failures
pizzathiefDec 28, 2015
9aac515
remove assert_not_equal
pizzathiefDec 28, 2015
4a62ad9
lets try '--ignore'ing the numpy tests dir
pizzathiefDec 31, 2015
df2ebeb
Don't code at night on holidays with bad specs.
pizzathiefDec 31, 2015
1e12273
try norecursedirs to get pytest to stop looking in numpy
pizzathiefJan 1, 2016
47e0c4b
found cases of 'import nose' , and also, use of
pizzathiefJan 2, 2016
d04ab5c
needed to specify 'reason=' for xfail to work
pizzathiefJan 2, 2016
57b2f17
need to specify a 'reason=' to use pytest.maek.xfail
pizzathiefJan 2, 2016
636728f
don't need knownfailureif
pizzathiefJan 2, 2016
b0a342d
pytest xfail needs a 'reason'
pizzathiefJan 2, 2016
78587c1
fixing up small pytest issues
pizzathiefJan 2, 2016
09e559a
don't need the nose make_decorator function any more.
pizzathiefJan 4, 2016
8c3f2f1
to please the pep8 gods, we sacrifice this line break.
pizzathiefJan 4, 2016
62983b5
replace a knownfailureif call, and fix up pytest xfail calls
pizzathiefJan 4, 2016
e83807f
make_decorator seems to be described here.
pizzathiefJan 4, 2016
22ee978
resolve the oeo8 allergy to blank lines,
pizzathiefJan 4, 2016
ea7c57f
fix up xfail calls
pizzathiefJan 4, 2016
3008a22
another zfail reason fix
pizzathiefJan 4, 2016
49d2315
typo
pizzathiefJan 4, 2016
a1f31a8
don't import from nose , and don't need knownfailure
pizzathiefJan 5, 2016
e812aac
remove knownfailureif reference
pizzathiefJan 5, 2016
4fff146
An attempt to make a image_comparison decorator that doesn't fail
pizzathiefJan 8, 2016
738da3e
fix up indentation for import
pizzathiefJan 8, 2016
da60028
another fix for indentation. kinda non-dry'y
pizzathiefJan 8, 2016
726cc92
removed mentions of 'import nose'
pizzathiefJan 11, 2016
f17a2db
more nose lines to change
pizzathiefJan 11, 2016
683546e
regex assertions to convert
pizzathiefJan 11, 2016
63eae4b
replaced nose.assert_almost_equal with the numpy one, but
pizzathiefJan 11, 2016
6c46f42
basic nose replacement stuff
pizzathiefJan 11, 2016
c4a824e
fix up test failures caused through rebase
pizzathiefJan 14, 2016
ac14548
add in the ability to filter out numpy files from consideration
pizzathiefJan 15, 2016
3f45e42
fix up test_mlab.py raises and nose import lines
pizzathiefJan 17, 2016
38c29c6
fix test_apply_window_*D* function calls in test_mlab.py
pizzathiefJan 17, 2016
fc4e025
fix test_LogLocator in test_ticker.py
pizzathiefJan 17, 2016
ade1890
fix lack of pytest import in test_transforms.py
pizzathiefJan 17, 2016
1cbd24a
remove __name__ == '__main__' from many test files
pizzathiefJan 17, 2016
373fa15
PEP8 E301 in test_docstring_addition
pizzathiefJan 17, 2016
ca9828a
PEP8 E302 in test_transforms.py, test_transformed_path
pizzathiefJan 17, 2016
fa1e601
PEP8 E261 in test_mathtext.py, math_tests[]
pizzathiefJan 17, 2016
534ab6f
PEP8 E712 in test_figure.py, test_fignum_exists
pizzathiefJan 18, 2016
db2d85b
PEP8 E302 test_dviread.py around setup_PsfontsMap
pizzathiefJan 18, 2016
c4ea6d4
PEP8 E712 in test_axes.py
pizzathiefJan 18, 2016
a2291a1
PEP8 E712 in test_artist.py , test_remove
pizzathiefJan 18, 2016
65b42bd
PEP8 W293 in test_labeled_data_unpacking.py, test_docstring_addition
pizzathiefJan 18, 2016
8a22e2a
fix bad pytest raises calls in test_triangulation.py
pizzathiefJan 18, 2016
6ed71fa
fix bad pytest.raises calls in test_cbook.py test_step_fails
pizzathiefJan 18, 2016
f78c075
fix bad assert calls in test_pickle.py , test_transform
pizzathiefJan 18, 2016
1d7b37c
fix bad pytest.raises calls in test_colors.py, test_colors_no_float
pizzathiefJan 18, 2016
90bbe25
fix pytest.raises call in test_colors.py test_cmap_and_norm_from_leve…
pizzathiefJan 18, 2016
ee30e10
fix rebase omission, test_transform in test_pickle.py
pizzathiefJan 18, 2016
35520a4
fix user searh, not match in test_labeled_data_unpacking, test_docstr…
pizzathiefJan 18, 2016
b3c7dda
fix test_invalid_input_forms in test_cycles.py
pizzathiefJan 18, 2016
331428f
fix nose skiptest references, test_axes.py
pizzathiefJan 18, 2016
ea38ba6
remove nose import references, many files
pizzathiefJan 18, 2016
2cb6b8c
PEP8 E302 at test_gridspec.py
pizzathiefJan 18, 2016
accbcf2
doc convert nose docs to pytest, testing.rst
pizzathiefJan 19, 2016
a4ddff3
fix remove nose install from travis
pizzathiefJan 19, 2016
bd5828f
fix syntax error (newline) in testing.rst
pizzathiefJan 19, 2016
930c529
fix numpy pytest errors. don't put pylab in default namespace
pizzathiefJan 19, 2016
ae9715c
ENH: use pytest instead of nose.
pizzathiefOct 31, 2015
edabe74
pytest.raises(), not pytest.raise()
pizzathiefNov 4, 2015
23d6fae
pytest.raises() calls needed some massaging
pizzathiefNov 4, 2015
f27909a
fixing up problems with assert, and the use of messages.
pizzathiefNov 5, 2015
a023347
fix errors highlighted in travis CI logs
pizzathiefNov 5, 2015
dd8111b
fixing pytest failures. Interesting that assert can't seem to handle
pizzathiefNov 5, 2015
9f53f57
fixing syntax failures
pizzathiefNov 5, 2015
eefe67d
force pytest-pep8 to ignore the pep8 warnings that
pizzathiefNov 7, 2015
2661e32
the switches that nose needed , make pytest fail, so lets
pizzathiefNov 8, 2015
f404baa
another assert_raises to replace with pytest.raises
pizzathiefNov 13, 2015
53457e9
replaced a nose function for known failing tests
pizzathiefNov 13, 2015
0f9fae8
remove more of the nose infrastructure
pizzathiefNov 27, 2015
cd961cc
fix up a bunch of pytest.raises calls.
pizzathiefDec 13, 2015
de69032
converted assert_raises calls to pytest.raises.
pizzathiefDec 13, 2015
42185f8
fixing pep8 failures.
pizzathiefDec 14, 2015
cd81fbf
more pep8 failures to hide under the rug.
pizzathiefDec 14, 2015
523bb86
if commenting out the nose pep8 functions work, then they
pizzathiefDec 14, 2015
859f8d5
removing (and moving) import code in tests.py
pizzathiefDec 15, 2015
ad48b37
pep8 failures
pizzathiefDec 28, 2015
9a0b134
try norecursedirs to get pytest to stop looking in numpy
pizzathiefJan 1, 2016
23cee6a
found cases of 'import nose' , and also, use of
pizzathiefJan 2, 2016
c59a7b0
don't need the nose make_decorator function any more.
pizzathiefJan 4, 2016
43fd3e2
make_decorator seems to be described here.
pizzathiefJan 4, 2016
108522a
An attempt to make a image_comparison decorator that doesn't fail
pizzathiefJan 8, 2016
90221b9
fix up indentation for import
pizzathiefJan 8, 2016
6f74d88
another fix for indentation. kinda non-dry'y
pizzathiefJan 8, 2016
0ba7323
removed mentions of 'import nose'
pizzathiefJan 11, 2016
39612f6
fix up test failures caused through rebase
pizzathiefJan 14, 2016
336d1eb
remove __name__ == '__main__' from many test files
pizzathiefJan 17, 2016
7d9fdf6
fix test_invalid_input_forms in test_cycles.py
pizzathiefJan 18, 2016
606907b
fix nose skiptest references, test_axes.py
pizzathiefJan 18, 2016
db5f5e5
fix numpy pytest errors. don't put pylab in default namespace
pizzathiefJan 19, 2016
37418d8
PEP8 E502 at test_simplification.py, test_fft_peaks
pizzathiefJan 19, 2016
01b9215
remove @cleanup operator from test_complete. Its causing a pytest
pizzathiefJan 21, 2016
b9c0ee7
PEP8 E302 around teardown_PsfontsMap, test_dviread.py
pizzathiefJan 22, 2016
e002e48
fix lack of _func error in image_comparison_2, decorators.py
pizzathiefJan 22, 2016
25f77bc
fix assert_raises call in test_valid_linestyles, test_lines.py
pizzathiefJan 22, 2016
1996513
fix syntax error (another newline) in testing.rst, rst files
pizzathiefJan 22, 2016
07313db
doc lets remove pytest targets in rst for now
pizzathiefJan 22, 2016
280be1b
convert pytest.raises(error,f,x,y) calls to with pytest.raises
pizzathiefJan 23, 2016
a135e56
fix test_positional_parameter_names_as_function , seems getting a
pizzathiefJan 23, 2016
e52e0fc
PEP8 E201 in test_stride_windows_0D_ValueError, test_mlab.py
pizzathiefJan 23, 2016
d2f4e6b
as requested, push a simple change to test appveyor
pizzathiefFeb 8, 2016
bf19dad
trying to get pytest to recognise dynamically created test
pizzathiefFeb 10, 2016
f111193
make tests.py handle single modules better
pizzathiefFeb 10, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
force pytest-pep8 to ignore the pep8 warnings that
matplotlib has already specified.  Which might makethe output log shorter than 4 megs.
  • Loading branch information
@pizzathief
pizzathief committedJan 21, 2016
commit784fdf8dadbf3e78ccb5e0dd858d4ae8b15695e9
1 change: 1 addition & 0 deletionstox.ini
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -19,6 +19,7 @@ deps =
[pytest]
norecursedirs = .git build
testpaths = tests
pep8ignore = E111 E114 E115 E116 E121 E122 E123 E124 E125 E126 E127 E128 E129 E131 E265 E266 W503

[pep8]
ignore=E111,E114,E115,E116,E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E265,E266,W503
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It seems you have two different methods to list ignore PEP8 violations here... What's the difference?

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp