diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2020-01-15 15:08:57 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-01-15 07:04:27 -0800 |
commit | 6b64a95713fc8a045f8e40949cec0765e0acb9b8 (patch) | |
tree | a3569486bc4e8b91ccd392549bba10d45fce59dd /test/pathological_tests.py | |
parent | 572557dd3ca0cedecba3833111bb04bb5668db43 (diff) |
Remove useless __name__ check in test scripts
These checks don't seem to be required and broke pathological_tests.py
on Windows where multiprocessing sets __name__ to "__mp_main__".
Diffstat (limited to 'test/pathological_tests.py')
-rw-r--r-- | test/pathological_tests.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/test/pathological_tests.py b/test/pathological_tests.py index e96c333..b52f593 100644 --- a/test/pathological_tests.py +++ b/test/pathological_tests.py @@ -9,13 +9,12 @@ import multiprocessing import time from cmark import CMark -if __name__ == "__main__": - parser = argparse.ArgumentParser(description='Run cmark tests.') - parser.add_argument('--program', dest='program', nargs='?', default=None, - help='program to test') - parser.add_argument('--library-dir', dest='library_dir', nargs='?', - default=None, help='directory containing dynamic library') - args = parser.parse_args(sys.argv[1:]) +parser = argparse.ArgumentParser(description='Run cmark tests.') +parser.add_argument('--program', dest='program', nargs='?', default=None, + help='program to test') +parser.add_argument('--library-dir', dest='library_dir', nargs='?', + default=None, help='directory containing dynamic library') +args = parser.parse_args(sys.argv[1:]) allowed_failures = {"many references": True} |