summaryrefslogtreecommitdiff
path: root/examples/TAP.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/TAP.py')
-rw-r--r--examples/TAP.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/TAP.py b/examples/TAP.py
index 8676e7e..788a656 100644
--- a/examples/TAP.py
+++ b/examples/TAP.py
@@ -169,7 +169,7 @@ class TAPSummary:
tapOutputParser.setParseAction(TAPSummary)
-if __name__ == "__main__":
+def main():
test1 = """\
1..4
ok 1 - Input file opened
@@ -241,3 +241,7 @@ if __name__ == "__main__":
tapResult = tapOutputParser.parseString(test)[0]
print(tapResult.summary(showAll=True))
print()
+
+
+if __name__ == "__main__":
+ main()