Skip to content
Snippets Groups Projects
Commit 2c4f2171 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

tests do work on Windows

parent 5733bac2
No related branches found
No related tags found
No related merge requests found
...@@ -10,8 +10,8 @@ logger = logging.getLogger(__name__) ...@@ -10,8 +10,8 @@ logger = logging.getLogger(__name__)
def dump_frames_on(sig_no, stack_frame, output): def dump_frames_on(sig_no, stack_frame, output):
sys.stderr.write("Stack frame dump requested\n") sys.stderr.write("Stack frame dump requested\n")
# noinspection PyProtectedMember # noinspection PyProtectedMember
for frame in sys._current_frames(): for frame_no, frame in sys._current_frames().items():
sys.stderr.write("For stack frame %s" % (repr(frame),)) sys.stderr.write("For stack frame %s" % (frame_no,))
tb = Traceback(frame) tb = Traceback(frame)
tb.pretty_print(output=output) tb.pretty_print(output=output)
sys.stderr.write("End of stack frame dump\n") sys.stderr.write("End of stack frame dump\n")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment