Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test_lazy_self_referential_modules to verify behavior of loade…
…d function
  • Loading branch information
effigies committed Mar 23, 2024
commit 7da3f1bc1bc97a33e43083282545aa7ca03408c0
5 changes: 3 additions & 2 deletions Lib/test/test_importlib/test_lazy.py
Original file line number Diff line number Diff line change
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