summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2007-10-26 21:44:47 +0000
committerTravis Oliphant <oliphant@enthought.com>2007-10-26 21:44:47 +0000
commit0dbf6c323e2bf49fd8a6c31b805807c92a983650 (patch)
treeb39fd3d0b24c16621d22115e4d3d55387598f280 /numpy
parent9034d6b1edb6179dd6c54c3ebd8056e723dd7c2e (diff)
downloadnumpy-0dbf6c323e2bf49fd8a6c31b805807c92a983650.tar.gz
Add test for #600 fix.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/tests/test_regression.py8
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()