Show More
@@ -2,6 +2,7 b' Test UI worker interaction' | |||||
2 |
|
2 | |||
3 | $ cat > t.py <<EOF |
|
3 | $ cat > t.py <<EOF | |
4 | > from __future__ import absolute_import, print_function |
|
4 | > from __future__ import absolute_import, print_function | |
|
5 | > import sys | |||
5 | > import time |
|
6 | > import time | |
6 | > from mercurial import ( |
|
7 | > from mercurial import ( | |
7 | > error, |
|
8 | > error, | |
@@ -9,6 +10,7 b' Test UI worker interaction' | |||||
9 | > ui as uimod, |
|
10 | > ui as uimod, | |
10 | > worker, |
|
11 | > worker, | |
11 | > ) |
|
12 | > ) | |
|
13 | > sys.unraisablehook = lambda x: None | |||
12 | > def abort(ui, args): |
|
14 | > def abort(ui, args): | |
13 | > if args[0] == 0: |
|
15 | > if args[0] == 0: | |
14 | > # by first worker for test stability |
|
16 | > # by first worker for test stability | |
@@ -101,7 +103,9 b' Workers should not do cleanups in all ca' | |||||
101 | > from __future__ import absolute_import |
|
103 | > from __future__ import absolute_import | |
102 | > import atexit |
|
104 | > import atexit | |
103 | > import os |
|
105 | > import os | |
|
106 | > import sys | |||
104 | > import time |
|
107 | > import time | |
|
108 | > sys.unraisablehook = lambda x: None | |||
105 | > oldfork = os.fork |
|
109 | > oldfork = os.fork | |
106 | > count = 0 |
|
110 | > count = 0 | |
107 | > parentpid = os.getpid() |
|
111 | > parentpid = os.getpid() |
General Comments 0
You need to be logged in to leave comments.
Login now