Skip to content

Commit

Permalink
Revert "Numpy ufunc methods are also inferred as Uninferable"
Browse files Browse the repository at this point in the history
This reverts commit b699ebb.

The fixes to context.path also appears to stop returning Uninferable for
numpy ufuncs.
  • Loading branch information
nelfin committed Apr 7, 2021
1 parent d27295e commit 04822ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unittest_regrtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def test_numpy_crash(self):
astroid = builder.string_build(data, __name__, __file__)
callfunc = astroid.body[1].value.func
inferred = callfunc.inferred()
self.assertEqual(len(inferred), 2)
self.assertEqual(len(inferred), 1)

def test_nameconstant(self):
# used to fail for Python 3.4
Expand Down

0 comments on commit 04822ab

Please sign in to comment.