Skip to content

Commit 31f6310

Browse files
committed
Ensure sys.version is restored in test_cygwinccompiler. Fixes #166.
1 parent 45cbb60 commit 31f6310

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

distutils/tests/test_cygwinccompiler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def stuff(request, monkeypatch, distutils_managed_tempdir):
2121
self = request.instance
2222
self.python_h = os.path.join(self.mkdtemp(), 'python.h')
2323
monkeypatch.setattr(sysconfig, 'get_config_h_filename', self._get_config_h_filename)
24+
monkeypatch.setattr(sys, 'version', sys.version)
2425

2526

2627
class TestCygwinCCompiler(support.TempdirManager):

distutils/tests/test_install.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ def test_record(self):
214214
]
215215
assert found == expected
216216

217-
@pytest.mark.xfail('platform.system == "Windows"', reason="#166")
218217
def test_record_extensions(self):
219218
cmd = test_support.missing_compiler_executable()
220219
if cmd is not None:

0 commit comments

Comments
 (0)