Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reproduce a failing test case, portably.
  • Loading branch information
bawr committed Aug 24, 2017
commit 00144e056f0fc2a60ffde7134ac72a31764687bc
6 changes: 3 additions & 3 deletions vmprof/test/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def functime_foo(t=0.05, insert=False):
if (insert):
thread_count = vmprof.insert_real_time_thread()
else:
thread_count = None
print("foo:", thread_id, thread_count, file=sys.stderr)
thread_count = -1
sys.stderr.writelines("foo:%i:%i\n" % (thread_id, thread_count))
return time.sleep(t)


Expand All @@ -96,7 +96,7 @@ def functime_bar(t=0.05, remove=False):
thread_count = vmprof.remove_real_time_thread()
else:
thread_count = None
print("bar:", thread_id, thread_count, file=sys.stderr)
sys.stderr.writelines("bar:%i:%i\n" % (thread_id, thread_count))
return time.sleep(t)


Expand Down