Skip to content

Commit e73a1c3

Browse files
authored
Merge pull request #4670 from carlosmiei/osx-support-test
Update test__osx_support.py from CPython 3.11
2 parents 6edd370 + 129a6f1 commit e73a1c3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/test/test__osx_support.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ def setUp(self):
1919
self.maxDiff = None
2020
self.prog_name = 'bogus_program_xxxx'
2121
self.temp_path_dir = os.path.abspath(os.getcwd())
22-
self.env = os_helper.EnvironmentVarGuard()
23-
self.addCleanup(self.env.__exit__)
22+
self.env = self.enterContext(os_helper.EnvironmentVarGuard())
2423
for cv in ('CFLAGS', 'LDFLAGS', 'CPPFLAGS',
2524
'BASECFLAGS', 'BLDSHARED', 'LDSHARED', 'CC',
2625
'CXX', 'PY_CFLAGS', 'PY_LDFLAGS', 'PY_CPPFLAGS',

0 commit comments

Comments
 (0)