forked from VimPlug/jedi
switched to __name__ == '__main__' checks for tests
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user