diff --git a/Lib/distutils/tests/support.py b/Lib/distutils/tests/support.py index 81289db4a1a..49277111bfa 100644 --- a/Lib/distutils/tests/support.py +++ b/Lib/distutils/tests/support.py @@ -138,7 +138,7 @@ def copy_xxmodule_c(directory): def test_compile(self): copy_xxmodule_c(self.tmpdir) - self.assertIn('xxmodule.c', os.listdir(self.tmpdir) + self.assertIn('xxmodule.c', os.listdir(self.tmpdir)) If the source file can be found, it will be copied to *directory*. If not, the test will be skipped. Errors during copy are not caught.