diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-04-25 02:11:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-25 02:11:09 +0200 |
commit | 9381f65a8ab5cd89e262e60bdac83834e1eafd22 (patch) | |
tree | dbb98d00ef37b26e35bb69211595108e43174f93 | |
parent | 7bb68f652d75c6a8585c95a75757ef6ca0b7d151 (diff) | |
download | python-setuptools-git-9381f65a8ab5cd89e262e60bdac83834e1eafd22.tar.gz |
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.
-rw-r--r-- | tests/test_build_ext.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_build_ext.py b/tests/test_build_ext.py index be7f5f38..96e5f030 100644 --- a/tests/test_build_ext.py +++ b/tests/test_build_ext.py @@ -41,6 +41,13 @@ class BuildExtTestCase(TempdirManager, return build_ext(*args, **kwargs) 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() if cmd is not None: self.skipTest('The %r command is not found' % cmd) |