use real part at common.dumps()

This commit is contained in:
Roman Zeyde
2014-08-08 14:50:07 +03:00
parent 841208bd3f
commit 9a6ca77aa4
4 changed files with 4 additions and 4 deletions

View File

@@ -49,5 +49,5 @@ def test_icapture():
def test_dumps_loads():
x = np.array([.1, .4, .2, .6, .3, .5])
y = common.loads(common.dumps(x * 1j))
y = common.loads(common.dumps(x))
assert all(x == y)