diff options
author | Torsten Marek <shlomme@gmail.com> | 2014-07-27 22:25:52 +0200 |
---|---|---|
committer | Torsten Marek <shlomme@gmail.com> | 2014-07-27 22:25:52 +0200 |
commit | d4b715c69ae9ac2da43f555e3d92b7339a96e368 (patch) | |
tree | 73f31b4b190025be6dd4147a50bc666876b0f6e2 | |
parent | 1eeab2e8757eba554f47e970d712078269e2dd31 (diff) | |
download | pylint-d4b715c69ae9ac2da43f555e3d92b7339a96e368.tar.gz |
Only run the module tests, and make sure that no new test cases in the old test framework are added.
-rw-r--r-- | test/test_func.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/test/test_func.py b/test/test_func.py index 887ffe4..e34c0a2 100644 --- a/test/test_func.py +++ b/test/test_func.py @@ -75,10 +75,7 @@ def gen_tests(filter_rgx): callbacks = [cb_test_gen(LintTestUpdate)] else: callbacks = [cb_test_gen(LintTestUsingModule)] - if not MODULES_ONLY: - callbacks.append(cb_test_gen(LintTestUsingFile)) tests = make_tests(INPUT_DIR, MSG_DIR, filter_rgx, callbacks) - if UPDATE: return tests @@ -96,12 +93,12 @@ def gen_tests(filter_rgx): # test all features are tested :) tests.append(TestTests) + assert len(tests) < 196, "Please do not add new test cases here." return tests # Create suite FILTER_RGX = None -MODULES_ONLY = False UPDATE = False def suite(): @@ -110,10 +107,6 @@ def suite(): if __name__=='__main__': - if '-m' in sys.argv: - MODULES_ONLY = True - sys.argv.remove('-m') - if '-u' in sys.argv: UPDATE = True sys.argv.remove('-u') |