mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
bpo-41811: create SortKey members using first given value (GH-22316) (GH-22325)
(cherry picked from commit ae0d2a33ec
)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
This commit is contained in:
parent
9e73cac173
commit
0e4d526de4
2 changed files with 7 additions and 3 deletions
|
@ -95,5 +95,9 @@ class StatsTestCase(unittest.TestCase):
|
|||
self.assertIn('pass2', funcs_called)
|
||||
self.assertIn('pass3', funcs_called)
|
||||
|
||||
def test_SortKey_enum(self):
|
||||
self.assertEqual(SortKey.FILENAME, 'filename')
|
||||
self.assertNotEqual(SortKey.FILENAME, SortKey.CALLS)
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue