Skip to content

Commit a7c3667

Browse files
authored
Fix faif#250: assert error in structural/flyweight.py
1 parent 7739094 commit a7c3667

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

structural/flyweight.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ def __init__(self, *args, **kwargs):
119119
cm2 = Card2('10', 'h', a=1)
120120
cm3 = Card2('10', 'h', a=2)
121121

122-
assert (cm1 == cm2) != cm3
123-
assert (cm1 is cm2) is not cm3
122+
assert (cm1 == cm2) and ( cm1 != cm3)
123+
assert (cm1 is cm2) and ( cm1 is not cm3)
124124
assert len(instances_pool) == 2
125125

126126
del cm1

0 commit comments

Comments
 (0)