Skip to content

Commit 3bed48e

Browse files
committed
Fixed test failures
1 parent 2e173a0 commit 3bed48e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fluentcheck/assertions/types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ def is_subtype_of(check_obj, _type):
1212

1313
def is_not_subtype_of(check_obj, _type):
1414
try:
15-
assert issubclass(check_obj._val.__class__, _type)
16-
raise CheckError('{} is subtype of {}'.format(check_obj._val, _type))
17-
except AssertionError:
15+
assert not issubclass(check_obj._val.__class__, _type)
1816
return check_obj
17+
except AssertionError:
18+
raise CheckError('{} is subtype of {}'.format(check_obj._val, _type))
1919

2020

2121
def is_of_type(check_obj, _type):

0 commit comments

Comments
 (0)