1
0
forked from VimPlug/jedi

switched to __name__ == '__main__' checks for tests

This commit is contained in:
David Halter
2013-03-01 00:07:36 +04:30
parent 1834ef51b1
commit 855d683d9a
2 changed files with 35 additions and 32 deletions

View File

@@ -101,6 +101,7 @@ def test_dir(refactoring_test_dir):
base.summary.append(s) base.summary.append(s)
if __name__ == '__main__':
refactoring_test_dir = '../test/refactor' refactoring_test_dir = '../test/refactor'
test_files = base.get_test_list() test_files = base.get_test_list()
test_dir(refactoring_test_dir) test_dir(refactoring_test_dir)

View File

@@ -10,7 +10,7 @@ tests.
So basically there are different kind of tests: So basically there are different kind of tests:
- complete / definitions: ``#? `` - complete / definitions ``#?``
- goto: ``#!`` - goto: ``#!``
- related names: ``#<`` - related names: ``#<``
@@ -268,6 +268,8 @@ def test_dir(completion_test_dir, thirdparty=False):
print(s) print(s)
base.summary.append(s) base.summary.append(s)
if __name__ == '__main__':
try: try:
i = sys.argv.index('--thirdparty') i = sys.argv.index('--thirdparty')
thirdparty = True thirdparty = True