diff options
| author | Arianna <self@areveny.com> | 2022-01-20 18:18:56 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-20 18:18:56 -0600 |
| commit | 082b723109675da8929e71d12bf5677af4bfb18e (patch) | |
| tree | e216a74773fb8de4dc699ef135c2e2cd564eba97 /tests | |
| parent | 3047277175e229a938a4dd83b0cde1015f473020 (diff) | |
| download | astroid-git-revert-1366-postinit-property.tar.gz | |
Revert "Fix builtin inference on property not including function arguments"revert-1366-postinit-property
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unittest_brain_builtin.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/unittest_brain_builtin.py b/tests/unittest_brain_builtin.py deleted file mode 100644 index e45b80f7..00000000 --- a/tests/unittest_brain_builtin.py +++ /dev/null @@ -1,22 +0,0 @@ -# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html -# For details: https://github.com/PyCQA/astroid/blob/main/LICENSE -"""Unit Tests for the builtins brain module.""" - -import unittest - -from astroid import extract_node, objects - - -class BuiltinsTest(unittest.TestCase): - def test_infer_property(self): - class_with_property = extract_node( - """ - class Something: - def getter(): - return 5 - asd = property(getter) #@ - """ - ) - inferred_property = list(class_with_property.value.infer())[0] - self.assertTrue(isinstance(inferred_property, objects.Property)) - self.assertTrue(hasattr(inferred_property, "args")) |
