mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
add space
This commit is contained in:
parent
72288d4f3c
commit
5c41787f13
1 changed files with 3 additions and 3 deletions
|
@ -86,10 +86,10 @@ class TestIsInstanceExceptions(unittest.TestCase):
|
|||
def test_isinstance_dont_mask_non_attribute_error(self):
|
||||
class C(object):
|
||||
def getclass(self):
|
||||
raise RuntimeError()
|
||||
__class__=property(getclass)
|
||||
raise RuntimeError
|
||||
__class__ = property(getclass)
|
||||
|
||||
c=C()
|
||||
c = C()
|
||||
self.assertRaises(RuntimeError, isinstance, c, bool)
|
||||
|
||||
# test another code path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue