xvfbwrapper 0.2.27__tar.gz → 0.2.28__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {xvfbwrapper-0.2.27/xvfbwrapper.egg-info → xvfbwrapper-0.2.28}/PKG-INFO +1 -1
- {xvfbwrapper-0.2.27 → xvfbwrapper-0.2.28}/pyproject.toml +1 -1
- {xvfbwrapper-0.2.27 → xvfbwrapper-0.2.28}/test_xvfb.py +10 -0
- {xvfbwrapper-0.2.27 → xvfbwrapper-0.2.28/xvfbwrapper.egg-info}/PKG-INFO +1 -1
- {xvfbwrapper-0.2.27 → xvfbwrapper-0.2.28}/xvfbwrapper.py +1 -0
- {xvfbwrapper-0.2.27 → xvfbwrapper-0.2.28}/LICENSE +0 -0
- {xvfbwrapper-0.2.27 → xvfbwrapper-0.2.28}/MANIFEST.in +0 -0
- {xvfbwrapper-0.2.27 → xvfbwrapper-0.2.28}/README.md +0 -0
- {xvfbwrapper-0.2.27 → xvfbwrapper-0.2.28}/setup.cfg +0 -0
- {xvfbwrapper-0.2.27 → xvfbwrapper-0.2.28}/tox.ini +0 -0
- {xvfbwrapper-0.2.27 → xvfbwrapper-0.2.28}/xvfbwrapper.egg-info/SOURCES.txt +0 -0
- {xvfbwrapper-0.2.27 → xvfbwrapper-0.2.28}/xvfbwrapper.egg-info/dependency_links.txt +0 -0
- {xvfbwrapper-0.2.27 → xvfbwrapper-0.2.28}/xvfbwrapper.egg-info/top_level.txt +0 -0
|
@@ -359,6 +359,16 @@ class TestXvfb(XvfbCleanTestCase):
|
|
|
359
359
|
self.assertEqual(":0", env_duped["DISPLAY"])
|
|
360
360
|
self.assertIsNone(xvfb.proc)
|
|
361
361
|
|
|
362
|
+
def test_environ_is_passed_to_xvfb_subprocess(self):
|
|
363
|
+
marker_value = "xvfbwrapper_test_marker_12345"
|
|
364
|
+
custom_env = os.environ.copy()
|
|
365
|
+
custom_env["XVFBWRAPPER_TEST_MARKER"] = marker_value
|
|
366
|
+
xvfb = Xvfb(environ=custom_env)
|
|
367
|
+
self.addCleanup(xvfb.stop)
|
|
368
|
+
xvfb.start()
|
|
369
|
+
proc = psutil.Process(xvfb.proc.pid)
|
|
370
|
+
self.assertEqual(proc.environ().get("XVFBWRAPPER_TEST_MARKER"), marker_value)
|
|
371
|
+
|
|
362
372
|
def test_start_failure_without_initial_display_env(self):
|
|
363
373
|
# Provide a custom env *without* DISPLAY so orig_display_var == None
|
|
364
374
|
custom_env = {"PATH": os.environ.get("PATH", "")}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|