mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
tests: for consistent output flush between writing sterr and stdout
Because stdout and stderr are buffered, the order of the output is other way around on some systems.
This commit is contained in:
parent
a2af430785
commit
6c82ce566b
@ -33,15 +33,16 @@ Test internal debugstacktrace command
|
||||
> dst('hello world')
|
||||
> def g():
|
||||
> f()
|
||||
> sys.stderr.flush()
|
||||
> debugstacktrace(skip=-5, f=sys.stdout)
|
||||
> g()
|
||||
> EOF
|
||||
$ python debugstacktrace.py
|
||||
hello world at:
|
||||
debugstacktrace.py:7 in * (glob)
|
||||
debugstacktrace.py:8 in * (glob)
|
||||
debugstacktrace.py:5 in g
|
||||
debugstacktrace.py:3 in f
|
||||
stacktrace at:
|
||||
debugstacktrace.py:7 *in * (glob)
|
||||
debugstacktrace.py:6 *in g (glob)
|
||||
debugstacktrace.py:8 *in * (glob)
|
||||
debugstacktrace.py:7 *in g (glob)
|
||||
*/util.py:* in debugstacktrace (glob)
|
||||
|
Loading…
Reference in New Issue
Block a user