Skip to content

Commit

Permalink
revert changes to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eendebakpt committed Jun 4, 2024
1 parent d54baf2 commit e5fa305
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Lib/test/test_json/test_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ def test_dump(self):
def test_dumps(self):
self.assertEqual(self.dumps({}), '{}')

def test_dump_skipkeys_invalid(self):
def test_dump_skipkeys(self):
v = {b'invalid_key': False, 'valid_key': True}
with self.assertRaises(TypeError):
self.json.dumps(v)

def test_dump_skipkeys(self):
v = {b'invalid_key': False, 'valid_key': True}
s = self.json.dumps(v, skipkeys=True)
o = self.json.loads(s)
self.assertIn('valid_key', o)
Expand Down

0 comments on commit e5fa305

Please sign in to comment.