mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
[3.13] gh-131277: allow EnvironmentVarGuard to unset more than one environment variable at once (GH-131280) (#131409)
(cherry picked from commit 3185e3115c
)
---------
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
25ae2045a8
commit
85c20374c0
10 changed files with 27 additions and 36 deletions
|
@ -419,8 +419,7 @@ class ParseArgsTestCase(unittest.TestCase):
|
|||
# which has an unclear API
|
||||
with os_helper.EnvironmentVarGuard() as env:
|
||||
# Ignore SOURCE_DATE_EPOCH env var if it's set
|
||||
if 'SOURCE_DATE_EPOCH' in env:
|
||||
del env['SOURCE_DATE_EPOCH']
|
||||
del env['SOURCE_DATE_EPOCH']
|
||||
|
||||
regrtest = main.Regrtest(ns)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue