summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/tests/test_command_build_ext.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/packaging/tests/test_command_build_ext.py')
-rw-r--r--Lib/packaging/tests/test_command_build_ext.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/packaging/tests/test_command_build_ext.py b/Lib/packaging/tests/test_command_build_ext.py
index fba27c7..9729559 100644
--- a/Lib/packaging/tests/test_command_build_ext.py
+++ b/Lib/packaging/tests/test_command_build_ext.py
@@ -265,7 +265,7 @@ class BuildExtTestCase(support.TempdirManager,
def test_get_outputs(self):
tmp_dir = self.mkdtemp()
c_file = os.path.join(tmp_dir, 'foo.c')
- self.write_file(c_file, 'void PyInit_foo(void) {};\n')
+ self.write_file(c_file, 'void PyInit_foo(void) {}\n')
ext = Extension('foo', [c_file], optional=False)
dist = Distribution({'name': 'xx',
'ext_modules': [ext]})
@@ -370,8 +370,8 @@ def test_suite():
src = _get_source_filename()
if not os.path.exists(src):
if verbose:
- print ('test_build_ext: Cannot find source code (test'
- ' must run in python build dir)')
+ print('test_command_build_ext: Cannot find source code (test'
+ ' must run in python build dir)')
return unittest.TestSuite()
else:
return unittest.makeSuite(BuildExtTestCase)