Skip to content

Commit a5b7fb3

Browse files
committed
change integer to power comparisions
1 parent eab15c4 commit a5b7fb3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pandas/tests/test_expressions.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from pandas.core.api import DataFrame, Panel
1414
from pandas.computation import expressions as expr
15-
from pandas import compat, _np_version_under1p12
15+
from pandas import compat, _np_version_under1p11
1616
from pandas.util.testing import (assert_almost_equal, assert_series_equal,
1717
assert_frame_equal, assert_panel_equal,
1818
assert_panel4d_equal, slow)
@@ -70,10 +70,10 @@ def run_arithmetic(self, df, other, assert_func, check_dtype=False,
7070
operations.append('div')
7171
for arith in operations:
7272

73-
# numpy >= 1.12 doesn't handle integers
73+
# numpy >= 1.11 doesn't handle integers
7474
# raised to integer powers
7575
# https://github.com/pandas-dev/pandas/issues/15363
76-
if arith == 'pow' and not _np_version_under1p12:
76+
if arith == 'pow' and not _np_version_under1p11:
7777
continue
7878

7979
operator_name = arith
@@ -272,10 +272,10 @@ def testit():
272272
for op, op_str in [('add', '+'), ('sub', '-'), ('mul', '*'),
273273
('div', '/'), ('pow', '**')]:
274274

275-
# numpy >= 1.12 doesn't handle integers
275+
# numpy >= 1.11 doesn't handle integers
276276
# raised to integer powers
277277
# https://github.com/pandas-dev/pandas/issues/15363
278-
if op == 'pow' and not _np_version_under1p12:
278+
if op == 'pow' and not _np_version_under1p11:
279279
continue
280280

281281
if op == 'div':

0 commit comments

Comments
 (0)