summaryrefslogtreecommitdiff
path: root/astroid/tests
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-10-03 17:44:45 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2015-10-03 17:44:45 +0300
commitc9fdca3130d506a2762bdb5aafe55de34f30bcfe (patch)
tree4b6e77730a340880355cb4d62715b08a55da77f5 /astroid/tests
parent8d15769dfa80943e140a07704513c4cd26cd3ad0 (diff)
downloadastroid-c9fdca3130d506a2762bdb5aafe55de34f30bcfe.tar.gz
Move objects.Slice back into nodes.Slice
We did this because objects.Slice had more capabilities than nodes.Slice, such as inferring the slice attributes (start, stop, step) and it was used mostly for inferring the slice() builtin.
Diffstat (limited to 'astroid/tests')
-rw-r--r--astroid/tests/unittest_inference.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/tests/unittest_inference.py b/astroid/tests/unittest_inference.py
index ef8888e..8b6d143 100644
--- a/astroid/tests/unittest_inference.py
+++ b/astroid/tests/unittest_inference.py
@@ -3662,7 +3662,7 @@ class SliceTest(unittest.TestCase):
lower, upper, step = values
node = test_utils.extract_node(code)
inferred = next(node.infer())
- self.assertIsInstance(inferred, objects.Slice)
+ self.assertIsInstance(inferred, nodes.Slice)
lower_value = next(inferred.igetattr('start'))
self.assertIsInstance(lower_value, nodes.Const)
self.assertEqual(lower_value.value, lower)