File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 6
6
from copy import copy
7
7
from ..serial import MockSerial
8
8
from ..mbed_device import MockMbedDevice
9
- from ..thread import MockThread
9
+ from ..process import MockProcess
10
10
11
11
class MockTestEnvironment (object ):
12
12
@@ -73,7 +73,7 @@ def _clean_path(self, path):
73
73
74
74
@staticmethod
75
75
def _process_side_effect (target = None , args = None ):
76
- return MockThread (target = target , args = args )
76
+ return MockProcess (target = target , args = args )
77
77
78
78
def patch (self , path , ** kwargs ):
79
79
self ._patch_definitions .append ((path , patch (path , ** kwargs )))
Original file line number Diff line number Diff line change 1
1
from builtins import super
2
2
from threading import Thread
3
3
4
- class MockThread (Thread ):
4
+ class MockProcess (Thread ):
5
5
def __init__ (self , target = None , args = None ):
6
6
super ().__init__ (target = target , args = args )
7
7
self ._terminates = 0
You can’t perform that action at this time.
0 commit comments