Skip to content

Commit

Permalink
Delete sim_main in __init__ all (#413)
Browse files Browse the repository at this point in the history
Signed-off-by: yihong0618 <[email protected]>
Co-authored-by: Tian Gao <[email protected]>
  • Loading branch information
yihong0618 and gaogaotiantian authored Mar 19, 2024
1 parent 49a1dcf commit d968411
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/viztracer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
__all__ = [
"__version__",
"main",
"sim_main",
"viewer_main",
"VizTracer",
"ignore_function",
Expand Down
4 changes: 4 additions & 0 deletions tests/test_cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,10 @@ def test_pid_suffix_and_output(self):
def test_module(self):
self.template(["viztracer", "-m", "numbers"])

def test_import_star(self):
script = "from viztracer import *"
self.template(["python", "cmdline_test.py"], script=script, expected_output_file=None)

def test_log_gc(self):
self.template(["viztracer", "--log_gc", "cmdline_test.py"], script=file_gc)

Expand Down

0 comments on commit d968411

Please sign in to comment.