mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-30132: distutils test_build_ext() uses temp_cwd() (#1278)
test_build_ext() of test_distutils now uses support.temp_cwd() to prevent the creation of a pdb file in the current working directory on Windows.
This commit is contained in:
parent
0d659e5614
commit
f6448e5d65
1 changed files with 7 additions and 0 deletions
|
@ -41,6 +41,13 @@ class BuildExtTestCase(TempdirManager,
|
||||||
return build_ext(*args, **kwargs)
|
return build_ext(*args, **kwargs)
|
||||||
|
|
||||||
def test_build_ext(self):
|
def test_build_ext(self):
|
||||||
|
# bpo-30132: On Windows, a .pdb file may be created in the current
|
||||||
|
# working directory. Create a temporary working directory to cleanup
|
||||||
|
# everything at the end of the test.
|
||||||
|
with support.temp_cwd():
|
||||||
|
self._test_build_ext()
|
||||||
|
|
||||||
|
def _test_build_ext(self):
|
||||||
cmd = support.missing_compiler_executable()
|
cmd = support.missing_compiler_executable()
|
||||||
if cmd is not None:
|
if cmd is not None:
|
||||||
self.skipTest('The %r command is not found' % cmd)
|
self.skipTest('The %r command is not found' % cmd)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue