xvfbwrapper 0.2.26__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xvfbwrapper
3
- Version: 0.2.26
3
+ Version: 0.2.28
4
4
  Summary: Manage headless displays with Xvfb (X virtual framebuffer)
5
5
  Author: Corey Goldberg
6
6
  Maintainer: Corey Goldberg
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "xvfbwrapper"
7
- version = "0.2.26"
7
+ version = "0.2.28"
8
8
  description = "Manage headless displays with Xvfb (X virtual framebuffer)"
9
9
  license = "MIT"
10
10
  license-files = ["LICENSE"]
@@ -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", "")}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xvfbwrapper
3
- Version: 0.2.26
3
+ Version: 0.2.28
4
4
  Summary: Manage headless displays with Xvfb (X virtual framebuffer)
5
5
  Author: Corey Goldberg
6
6
  Maintainer: Corey Goldberg
@@ -111,6 +111,7 @@ class Xvfb:
111
111
  stdout=subprocess.DEVNULL,
112
112
  stderr=subprocess.DEVNULL,
113
113
  close_fds=True,
114
+ env=dict(self.environ),
114
115
  )
115
116
  start = time.time()
116
117
  while not self._local_display_exists(self.new_display):
File without changes
File without changes
File without changes
File without changes
File without changes