File tree Expand file tree Collapse file tree 3 files changed +3
-18
lines changed Expand file tree Collapse file tree 3 files changed +3
-18
lines changed Original file line number Diff line number Diff line change @@ -69,27 +69,19 @@ GitHub has an excellent `guide`_.
6969The current tests are written in 2 styles:
7070
7171* standard xUnit based only on stdlib unittest
72- (can be executed with nose)
7372* functional test using a custom framework and executed by the
7473 pycodestyle itself when installed in dev mode.
7574
7675
7776Running unittest
7877~~~~~~~~~~~~~~~~
7978
80- While the tests are writted using stdlib `unittest ` module, the existing
81- test include unit, integration and functional tests.
79+ The tests are writted using stdlib `unittest ` module, the existing test
80+ include unit, integration and functional tests.
8281
83- There are a couple of ways to run the tests::
82+ To run the tests::
8483
8584 $ python setup.py test
86- $ # Use nose to run specific test
87- $ nosetests \
88- > testsuite.test_blank_lines:TestBlankLinesDefault.test_initial_no_blank
89- $ # Use nose to run a subset and check coverage, and check the resulting
90- $ $ cover/pycodestyle_py.html in your browser
91- $ nosetests --with-coverage --cover-html -s testsuite.test_blank_lines
92-
9385
9486Running functional
9587~~~~~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -25,9 +25,6 @@ in your project::
2525 self.assertEqual(result.total_errors, 0,
2626 "Found code style errors (and warnings).")
2727
28- If you are using ``nosetests `` for running tests, remove ``quiet=True ``
29- since Nose suppresses stdout.
30-
3128There's also a shortcut for checking a single file::
3229
3330 import pycodestyle
Original file line number Diff line number Diff line change @@ -215,7 +215,3 @@ def run_tests(style):
215215 if options .testsuite :
216216 init_tests (style )
217217 return style .check_files ()
218-
219-
220- # nose should not collect these functions
221- init_tests .__test__ = run_tests .__test__ = False
You can’t perform that action at this time.
0 commit comments