Fix a `UnboundLocalError` bug in `test_sysconfig` (GH-31000)
https://github.com/python/cpython/commit/8b1b27f1939cc4060531d198fdb09242f24... commit: 8b1b27f1939cc4060531d198fdb09242f247ca7c branch: main author: Brett Cannon <brett@python.org> committer: pablogsal <Pablogsal@gmail.com> date: 2022-01-29T00:43:36Z summary: Fix a `UnboundLocalError` bug in `test_sysconfig` (GH-31000) Accidentally introduced by GH-24502 files: M Lib/test/test_sysconfig.py diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py index 7ba004d77315d..2c4120979d9a2 100644 --- a/Lib/test/test_sysconfig.py +++ b/Lib/test/test_sysconfig.py @@ -436,8 +436,8 @@ def test_triplet_in_ext_suffix(self): expected_suffixes = 'i386-linux-gnu.so', 'x86_64-linux-gnux32.so', 'i386-linux-musl.so' else: # 8 byte pointer size expected_suffixes = 'x86_64-linux-gnu.so', 'x86_64-linux-musl.so' - self.assertTrue(suffix.endswith(expected_suffixes), - f'unexpected suffix {suffix!r}') + self.assertTrue(suffix.endswith(expected_suffixes), + f'unexpected suffix {suffix!r}') @unittest.skipUnless(sys.platform == 'darwin', 'OS X-specific test') def test_osx_ext_suffix(self):
participants (1)
-
pablogsal