[tahoe-lafs-trac-stream] [Tahoe-LAFS] #3548: test_filesystem_with_cli_in_subprocess mutates os.environ a bunch

Tahoe-LAFS trac at tahoe-lafs.org
Mon Dec 7 15:45:56 UTC 2020


#3548: test_filesystem_with_cli_in_subprocess mutates os.environ a bunch
---------------------+---------------------------
 Reporter:  exarkun  |          Owner:
     Type:  defect   |         Status:  new
 Priority:  normal   |      Milestone:  undecided
Component:  unknown  |        Version:  n/a
 Keywords:           |  Launchpad Bug:
---------------------+---------------------------
 It's not clear what effect these mutations may have on the test process
 itself but they clearly can have an effect on child processes.

 There are two places this happens:

 {{{
 env = kwargs.get("env", os.environ)
 # Python warnings from the child process don't matter.
 env["PYTHONWARNINGS"] = "ignore"
 }}}

 and

 {{{
 env = os.environ
 env['http_proxy'] = env['HTTP_PROXY'] = "http://127.0.0.0:12345"  #
 invalid address
 }}}

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3548>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list