summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2022-01-29 00:43:36 (GMT)
committerGitHub <noreply@github.com>2022-01-29 00:43:36 (GMT)
commit8b1b27f1939cc4060531d198fdb09242f247ca7c (patch)
treef8acbe6f9e07975e8230605e8d909238a7bb4fd4
parent18cb2ef46c9998480f7182048435bc58265c88f2 (diff)
downloadcpython-8b1b27f1939cc4060531d198fdb09242f247ca7c.zip
cpython-8b1b27f1939cc4060531d198fdb09242f247ca7c.tar.gz
cpython-8b1b27f1939cc4060531d198fdb09242f247ca7c.tar.bz2
Fix a `UnboundLocalError` bug in `test_sysconfig` (GH-31000)
Accidentally introduced by GH-24502
-rw-r--r--Lib/test/test_sysconfig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
index 7ba004d..2c41209 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):