diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-10-03 17:44:45 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-10-03 17:44:45 +0300 |
commit | c9fdca3130d506a2762bdb5aafe55de34f30bcfe (patch) | |
tree | 4b6e77730a340880355cb4d62715b08a55da77f5 /astroid/tests | |
parent | 8d15769dfa80943e140a07704513c4cd26cd3ad0 (diff) | |
download | astroid-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.py | 2 |
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) |