Skip to content

Commit

Permalink
tests: Fix closure exception for dict tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeSavefrogs committed Jan 28, 2024
1 parent 6deceac commit 702754d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/polyfills/stdlib/future_types/dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,7 @@ def test_keys(self):
self.assertEqual(keys, ["first", "second"])

def test_pop(self):
d = dict(first=1, second=2)
self.assertRaises(NotImplementedError, lambda: d.pop("first"))
self.assertRaises(NotImplementedError, lambda: dict(first=1, second=2).pop("first"))

def test_popitem(self):
self.assertRaises(NotImplementedError, lambda: dict().popitem())
Expand Down

0 comments on commit 702754d

Please sign in to comment.