Skip to content

Commit b64245c

Browse files
committed
Move max test to appropriate test method
1 parent 03f94a3 commit b64245c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_future/test_builtins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,7 @@ class BadSeq:
11231123
def __getitem__(self, index):
11241124
raise ValueError
11251125
self.assertRaises(ValueError, min, BadSeq())
1126+
self.assertEqual(max(x for x in [5, 4, 3]), 5)
11261127

11271128
for stmt in (
11281129
"min(key=int)", # no args
@@ -1156,7 +1157,6 @@ def __getitem__(self, index):
11561157

11571158
# Test iterables that can only be looped once #510
11581159
self.assertEqual(min(x for x in [5]), 5)
1159-
self.assertEqual(max(x for x in [5, 4, 3]), 5)
11601160

11611161
def test_next(self):
11621162
it = iter(range(2))

0 commit comments

Comments
 (0)