diff options
author | Travis Oliphant <oliphant@enthought.com> | 2007-10-26 21:44:47 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2007-10-26 21:44:47 +0000 |
commit | 0dbf6c323e2bf49fd8a6c31b805807c92a983650 (patch) | |
tree | b39fd3d0b24c16621d22115e4d3d55387598f280 /numpy | |
parent | 9034d6b1edb6179dd6c54c3ebd8056e723dd7c2e (diff) | |
download | numpy-0dbf6c323e2bf49fd8a6c31b805807c92a983650.tar.gz |
Add test for #600 fix.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/tests/test_regression.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py index 1d2b019d2..f0ad8d5d9 100644 --- a/numpy/core/tests/test_regression.py +++ b/numpy/core/tests/test_regression.py @@ -740,5 +740,13 @@ class TestRegression(NumpyTestCase): x |= y self.failUnlessRaises(TypeError,rs) + def check_unicode_scalar(self, level=rlevel): + """Ticket #600""" + import cPickle + x = N.array(["DROND", "DROND1"], dtype="U6") + el = x[1] + new = cPickle.loads(cPickle.dumps(el)) + assert_equal(new, el) + if __name__ == "__main__": NumpyTest().run() |