8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7a16ff commit dded16cCopy full SHA for dded16c
Lib/test/test_importlib/test_lazy.py
@@ -150,7 +150,7 @@ def test_module_load_race(self):
150
with test_util.uncache(TestingImporter.module_name):
151
loader = TestingImporter()
152
module = self.new_module(loader=loader)
153
- assert loader.load_count == 0
+ self.assertEqual(loader.load_count, 0)
154
155
class RaisingThread(threading.Thread):
156
exc = None
@@ -171,10 +171,10 @@ def access_module():
171
# Races could cause errors
172
for thread in threads:
173
thread.join()
174
- assert thread.exc is None
+ self.assertIsNone(thread.exc)
175
176
# Or multiple load attempts
177
- assert loader.load_count == 1
+ self.assertEqual(loader.load_count, 1)
178
179
180
if __name__ == '__main__':
0 commit comments