Skip to content

Commit 69eb3b3

Browse files
Евгений БлиновЕвгений Блинов
authored andcommitted
Add test for hash equality with different lambda args
1 parent 2523bc2 commit 69eb3b3

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tests/test_hash.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,5 +186,8 @@ def test_hash_simple_lambda():
186186

187187

188188
def test_hash_lambda_only_body():
189-
lambda_hash = getsourcehash(lambda x: x, only_body=True)
190-
assert lambda_hash == '91MJ41'
189+
first_hash = getsourcehash(lambda x: x, only_body=True)
190+
second_hash = getsourcehash(lambda x, y: x, only_body=True)
191+
192+
assert first_hash == '91MJ41'
193+
assert first_hash == second_hash

0 commit comments

Comments
 (0)