Skip to content

Commit 1f92c4e

Browse files
generatedunixname89002005287564facebook-github-bot
generatedunixname89002005287564
authored andcommitted
vision/fair
Reviewed By: zsol Differential Revision: D53258682 fbshipit-source-id: 3f006b5f31a2b1ffdc6323d3a3b08ac46c3162ce
1 parent 9b981f2 commit 1f92c4e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/benchmarks/bm_main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from os.path import dirname, isfile, join
1313

1414

15-
if __name__ == "__main__":
15+
def main() -> None:
1616
# pyre-ignore[16]
1717
if len(sys.argv) > 1:
1818
# Parse from flags.
@@ -36,3 +36,7 @@
3636
os.environ["PYTHONPATH"] = ":".join(sys.path)
3737
for file_name in file_names:
3838
subprocess.check_call([sys.executable, file_name])
39+
40+
41+
if __name__ == "__main__":
42+
main() # pragma: no cover

0 commit comments

Comments
 (0)