mirror of https://github.com/ARMmbed/mbed-os.git
In Py3.7, a reinit of a mock variable was needed. It seems that initializing mock variables in an object isn't enough
parent
5469c00e81
commit
246f6fc305
|
@ -141,6 +141,7 @@ class BuildApiTests(unittest.TestCase):
|
|||
lib_config_data=None,
|
||||
)
|
||||
mock_prepare_toolchain().config.deliver_into.return_value = (None, None)
|
||||
mock_prepare_toolchain().config.name = None
|
||||
|
||||
build_project(self.src_paths, self.build_path, self.target,
|
||||
self.toolchain_name, app_config=app_config, notify=notify)
|
||||
|
@ -175,6 +176,7 @@ class BuildApiTests(unittest.TestCase):
|
|||
lib_config_data=None,
|
||||
)
|
||||
mock_prepare_toolchain().config.deliver_into.return_value = (None, None)
|
||||
mock_prepare_toolchain().config.name = None
|
||||
|
||||
build_project(self.src_paths, self.build_path, self.target,
|
||||
self.toolchain_name, notify=notify)
|
||||
|
|
Loading…
Reference in New Issue