Skip to content

Commit 7f982bb

Browse files
committed
narrow test to try and not trigger an error hiding type conversion
1 parent 6f844e1 commit 7f982bb

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

coverage.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,4 +153,4 @@ data_algebra/util.py 140 29 79% 26, 51, 56, 61, 84-
153153
TOTAL 5669 712 87%
154154

155155

156-
======================= 282 passed in 485.89s (0:08:05) ========================
156+
======================= 282 passed in 446.44s (0:07:26) ========================
0 Bytes
Binary file not shown.

dist/data_algebra-1.3.1.tar.gz

19 Bytes
Binary file not shown.

tests/test_float_divide.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def test_is_inf():
7272
def test_float_divide_works():
7373
pd = data_algebra.default_data_model.pd
7474
d = pd.DataFrame({
75-
'a': [1, 1, 1, 0, numpy.inf],
76-
'b': [1, 2, 0, 0, numpy.inf],
75+
'a': [1, 1, 1, 0],
76+
'b': [1, 2, 0, 0],
7777
})
7878
ops = (
7979
descr(d=d)
@@ -86,9 +86,9 @@ def test_float_divide_works():
8686
)
8787
res_pandas = ops.transform(d)
8888
expect = pd.DataFrame({
89-
'a': [1, 1, 1, 0, numpy.inf],
90-
'b': [1, 2, 0, 0, numpy.inf],
91-
'r': [1.0, 0.5, None, None, None],
89+
'a': [1, 1, 1, 0],
90+
'b': [1, 2, 0, 0],
91+
'r': [1.0, 0.5, None, None],
9292
})
9393
assert data_algebra.test_util.equivalent_frames(expect, res_pandas)
9494
sqlite_handle = data_algebra.SQLite.example_handle()

0 commit comments

Comments
 (0)