Skip to content

Commit

Permalink
Disable time limit on slow test.
Browse files Browse the repository at this point in the history
  • Loading branch information
donkirkby committed Oct 1, 2023
1 parent 7501f77 commit a8c712d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion plugin/PySrc/space_tracer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def parse_args(command_args=None):
parser.add_argument('--millisecond_limit',
type=int,
default=500,
help='time limit in milliseconds')
help='time limit in milliseconds, 0 to disable')
parser.add_argument('-x',
'--width',
type=int,
Expand Down Expand Up @@ -161,6 +161,8 @@ def parse_args(command_args=None):
args = parser.parse_args(command_args[1:])
if args.canvas_only:
args.canvas = True
if args.millisecond_limit == 0:
args.millisecond_limit = None
if args.driver:
if args.driver[0] == '-m':
args.is_module = True
Expand Down
4 changes: 2 additions & 2 deletions test/PySrc/tests/test_code_tracer_matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ def test_show(is_matplotlib_cleared):
"""
tracer = TraceRunner()

# Needs a long time on some test runners. Building fonts?
# 0 disables time limit, because it's slow on some test runners.
report = tracer.trace_turtle(code,
0,
0,
'--millisecond_limit=30000')
'--millisecond_limit=0')

assert replace_image(report) == expected_report

Expand Down

0 comments on commit a8c712d

Please sign in to comment.