Skip to content

Commit

Permalink
Fix a UnboundLocalError bug in test_sysconfig (GH-31000)
Browse files Browse the repository at this point in the history
Accidentally introduced by GH-24502
  • Loading branch information
brettcannon authored Jan 29, 2022
1 parent 18cb2ef commit 8b1b27f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_sysconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 8b1b27f

Please sign in to comment.