8000 TEST: Use TestCase.assert* methods · python/cpython@dded16c · GitHub
[go: up one dir, main page]

Skip to content

Commit dded16c

Browse files
committed
TEST: Use TestCase.assert* methods
1 parent d7a16ff commit dded16c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_importlib/test_lazy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def test_module_load_race(self):
150150
with test_util.uncache(TestingImporter.module_name):
151151
loader = TestingImporter()
152152
module = self.new_module(loader=loader)
153-
assert loader.load_count == 0
153+
self.assertEqual(loader.load_count, 0)
154154

155155
class RaisingThread(threading.Thread):
156156
exc = None
@@ -171,10 +171,10 @@ def access_module():
171171
# Races could cause errors
172172
for thread in threads:
173173
thread.join()
174-
assert thread.exc is None
174+
self.assertIsNone(thread.exc)
175175

176176
# Or multiple load attempts
177-
assert loader.load_count == 1
177+
self.assertEqual(loader.load_count, 1)
178178

179179

180180
if __name__ == '__main__':

0 commit comments

Comments
 (0)
0