summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Marek <shlomme@gmail.com>2014-07-27 22:25:52 +0200
committerTorsten Marek <shlomme@gmail.com>2014-07-27 22:25:52 +0200
commit7c86e39440a6d3469237b2f478ff50dca949ed02 (patch)
tree2bdb18633795ef1cf065ae1a1ad40062e3f29853
parentf0a084ffaf815ac6776e294d413a01446dff40b8 (diff)
downloadpylint-git-7c86e39440a6d3469237b2f478ff50dca949ed02.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.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/test/test_func.py b/test/test_func.py
index 887ffe45f..e34c0a224 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')