We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e173a0 commit 3bed48eCopy full SHA for 3bed48e
fluentcheck/assertions/types.py
@@ -12,10 +12,10 @@ def is_subtype_of(check_obj, _type):
12
13
def is_not_subtype_of(check_obj, _type):
14
try:
15
- assert issubclass(check_obj._val.__class__, _type)
16
- raise CheckError('{} is subtype of {}'.format(check_obj._val, _type))
17
- except AssertionError:
+ assert not issubclass(check_obj._val.__class__, _type)
18
return check_obj
+ except AssertionError:
+ raise CheckError('{} is subtype of {}'.format(check_obj._val, _type))
19
20
21
def is_of_type(check_obj, _type):
0 commit comments