Skip to content

Commit

Permalink
RF: specify type of division for Py3 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-brett committed May 31, 2016
1 parent 937c4cd commit 541740e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion datarray/tests/test_data_array.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
'''Tests for DataArray and friend'''

import sys
PY3 = sys.version_info[0] >= 3

import numpy as np

from datarray.datarray import Axis, DataArray, NamedAxisError, \
Expand Down Expand Up @@ -446,7 +449,10 @@ def test_label_mismatch():
nt.assert_raises(NamedAxisError, dar1.__add__, dar2)
nt.assert_raises(NamedAxisError, dar1.__sub__, dar2)
nt.assert_raises(NamedAxisError, dar1.__mul__, dar2)
nt.assert_raises(NamedAxisError, dar1.__div__, dar2)
nt.assert_raises(NamedAxisError, dar1.__floordiv__, dar2)
nt.assert_raises(NamedAxisError, dar1.__truediv__, dar2)
if not PY3:
nt.assert_raises(NamedAxisError, dar1.__div__, dar2)

# -- Test DataArray.axes
class TestAxesManager:
Expand Down

0 comments on commit 541740e

Please sign in to comment.