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)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
refactoring_test_dir = '../test/refactor'
|
||||
test_files = base.get_test_list()
|
||||
test_dir(refactoring_test_dir)
|
||||
|
||||
@@ -10,7 +10,7 @@ tests.
|
||||
|
||||
So basically there are different kind of tests:
|
||||
|
||||
- complete / definitions: ``#? ``
|
||||
- complete / definitions ``#?``
|
||||
- goto: ``#!``
|
||||
- related names: ``#<``
|
||||
|
||||
@@ -268,6 +268,8 @@ def test_dir(completion_test_dir, thirdparty=False):
|
||||
print(s)
|
||||
base.summary.append(s)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
i = sys.argv.index('--thirdparty')
|
||||
thirdparty = True
|
||||
|
||||
Reference in New Issue
Block a user