def test_numpy_scalar_complex(self):
        x = np.complex64(np.random.rand() + 1j * np.random.rand())
        x_rec = self.encode_decode(x)
        self.assertTrue(np.allclose(x, x_rec))
dataset/ETHPy150Open pydata/pandas/pandas/io/tests/test_packers.py/TestNumpy.test_numpy_scalar_complex/original