From 6b64a95713fc8a045f8e40949cec0765e0acb9b8 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Wed, 15 Jan 2020 15:08:57 +0100 Subject: 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__". --- test/pathological_tests.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'test/pathological_tests.py') 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} -- cgit v1.2.3