summaryrefslogtreecommitdiff
path: root/test/entity_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/entity_tests.py')
-rw-r--r--test/entity_tests.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/entity_tests.py b/test/entity_tests.py
index ebaf9f7..27b70e6 100644
--- a/test/entity_tests.py
+++ b/test/entity_tests.py
@@ -19,13 +19,12 @@ def get_entities():
entities.append((entity, utf8))
return entities
-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:])
cmark = CMark(prog=args.program, library_dir=args.library_dir)