Detach frozen service console environment
This commit is contained in:
@@ -84,6 +84,12 @@ class DeployerTests(unittest.TestCase):
|
||||
|
||||
self.assertEqual(launcher, [deployer_module.sys.executable, "--service-console"])
|
||||
|
||||
def test_frozen_service_console_starts_as_independent_pyinstaller_instance(self):
|
||||
with patch.object(deployer_module.sys, "frozen", True, create=True):
|
||||
environment = deployer_module._service_console_environment()
|
||||
|
||||
self.assertEqual(environment["PYINSTALLER_RESET_ENVIRONMENT"], "1")
|
||||
|
||||
def test_extracts_backend_port_from_java_system_property(self):
|
||||
extract_port = getattr(deployer_module, "_extract_server_port", lambda command: None)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user