Skip to content

Commit 3db9745

Browse files
pre-commit-ci[bot]areveny
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9e78982 commit 3db9745

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/unittest_brain_builtin.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@
66

77
from astroid import extract_node, objects
88

9+
910
class BuiltinsTest(unittest.TestCase):
1011
def test_infer_property(self):
1112
class_with_property = extract_node(
12-
"""
13+
"""
1314
class Something:
1415
def getter():
1516
return 5
1617
asd = property(getter) #@
1718
"""
1819
)
1920
inferred_property = list(class_with_property.value.infer())[0]
20-
assert isinstance(inferred_property, objects.Property)
21-
assert hasattr(inferred_property, "args")
21+
self.assertTrue(isinstance(inferred_property, objects.Property))
22+
self.assertTrue(hasattr(inferred_property, "args"))

0 commit comments

Comments
 (0)