MCPcopy Index your code
hub / github.com/RustPython/RustPython / assertNotIsSubclass

Method assertNotIsSubclass

Lib/test/support/testcase.py:13–17  ·  view source on GitHub ↗
(self, cls, superclass, msg=None)

Source from the content-addressed store, hash-verified

11 self.fail(self._formatMessage(msg, standardMsg))
12
13 def assertNotIsSubclass(self, cls, superclass, msg=None):
14 if not issubclass(cls, superclass):
15 return
16 standardMsg = f'{cls!r} is a subclass of {superclass!r}'
17 self.fail(self._formatMessage(msg, standardMsg))
18
19 def assertHasAttr(self, obj, name, msg=None):
20 if not hasattr(obj, name):

Calls 3

issubclassFunction · 0.85
_formatMessageMethod · 0.80
failMethod · 0.45

Tested by

no test coverage detected