Skip to content

Commit 3fc79e7

Browse files
committed
Rename MockThread to MockProcess
1 parent 0b77c60 commit 3fc79e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/test/mocks/environment/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from copy import copy
77
from ..serial import MockSerial
88
from ..mbed_device import MockMbedDevice
9-
from ..thread import MockThread
9+
from ..process import MockProcess
1010

1111
class MockTestEnvironment(object):
1212

@@ -73,7 +73,7 @@ def _clean_path(self, path):
7373

7474
@staticmethod
7575
def _process_side_effect(target=None, args=None):
76-
return MockThread(target=target, args=args)
76+
return MockProcess(target=target, args=args)
7777

7878
def patch(self, path, **kwargs):
7979
self._patch_definitions.append((path, patch(path, **kwargs)))

test/test/mocks/thread.py renamed to test/test/mocks/process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from builtins import super
22
from threading import Thread
33

4-
class MockThread(Thread):
4+
class MockProcess(Thread):
55
def __init__(self, target=None, args=None):
66
super().__init__(target=target, args=args)
77
self._terminates = 0

0 commit comments

Comments
 (0)