Skip to content

Commit

Permalink
Update test_lazy_self_referential_modules to verify behavior of loade…
Browse files Browse the repository at this point in the history
…d function
  • Loading branch information
effigies committed Mar 23, 2024
1 parent fd630e7 commit 7da3f1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Lib/test/test_importlib/test_lazy.py
Expand Up @@ -192,8 +192,9 @@ def test_lazy_self_referential_modules(self):
sys.modules['json'] = module
loader.exec_module(module)

# Trigger load with attribute lookup
module.loads
# Trigger load with attribute lookup, ensure expected behavior
test_load = module.loads('{}')
self.assertEqual(test_load, {})


if __name__ == '__main__':
Expand Down

0 comments on commit 7da3f1b

Please sign in to comment.