Skip to content

Commit 3054764

Browse files
authored
Merge pull request #96 from lazka/less-strict-pyconfigh-tests
tests: fix tests on Ubuntu 22.04
2 parents f867e4c + 1736f53 commit 3054764

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

distutils/tests/test_sysconfig.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,10 @@ def test_parse_config_h(self):
288288
input = {}
289289
with open(config_h, encoding="utf-8") as f:
290290
result = sysconfig.parse_config_h(f, g=input)
291-
self.assertTrue(input)
292291
self.assertTrue(input is result)
293292
with open(config_h, encoding="utf-8") as f:
294293
result = sysconfig.parse_config_h(f)
295-
self.assertTrue(result)
294+
self.assertTrue(isinstance(result, dict))
296295

297296
def test_suite():
298297
suite = unittest.TestSuite()

0 commit comments

Comments
 (0)