Skip to content

Commit 1b96db7

Browse files
committed
Remove unnecessary loop.
1 parent 9f89372 commit 1b96db7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Lib/test/test_hash.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,8 @@ class A:
173173
def __hash__(self):
174174
return 1.0
175175

176-
for _ in range(100):
177-
with self.assertRaises(TypeError):
178-
hash(A())
176+
with self.assertRaises(TypeError):
177+
hash(A())
179178

180179
class HashRandomizationTests:
181180

0 commit comments

Comments
 (0)