From: Brett Cannon Date: Sat, 29 Jan 2022 00:43:36 +0000 (-0800) Subject: Fix a `UnboundLocalError` bug in `test_sysconfig` (GH-31000) X-Git-Tag: v3.11.0a5~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8b1b27f1939cc4060531d198fdb09242f247ca7c;p=thirdparty%2FPython%2Fcpython.git Fix a `UnboundLocalError` bug in `test_sysconfig` (GH-31000) Accidentally introduced by GH-24502 --- diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py index 7ba004d77315..2c4120979d9a 100644 --- a/Lib/test/test_sysconfig.py +++ b/Lib/test/test_sysconfig.py @@ -436,8 +436,8 @@ class TestSysConfig(unittest.TestCase): 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):