Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel committed Mar 23, 2024
1 parent 5f1e601 commit 2e0c1c1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Lib/test/test_descr.py
Original file line number Diff line number Diff line change
Expand Up @@ -5079,8 +5079,9 @@ def test_iter_keys(self):
self.assertNotIsInstance(it, list)
keys = list(it)
keys.sort()
self.assertEqual(keys, ['__dict__', '__doc__', '__static_attributes__',
'__module__', '__weakref__', 'meth'])
self.assertEqual(keys, ['__dict__', '__doc__', '__module__',
'__static_attributes__', '__weakref__',
'meth'])

@unittest.skipIf(hasattr(sys, 'gettrace') and sys.gettrace(),
'trace function introduces __local__')
Expand All @@ -5099,8 +5100,9 @@ def test_iter_items(self):
self.assertNotIsInstance(it, list)
keys = [item[0] for item in it]
keys.sort()
self.assertEqual(keys, ['__dict__', '__doc__', '__static_attributes__',
'__module__', '__weakref__', 'meth'])
self.assertEqual(keys, ['__dict__', '__doc__', '__module__',
'__static_attributes__', '__weakref__',
'meth'])

def test_dict_type_with_metaclass(self):
# Testing type of __dict__ when metaclass set...
Expand Down

0 comments on commit 2e0c1c1

Please sign in to comment.