diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2012-04-11 12:43:34 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2012-04-11 12:50:22 -0600 |
commit | d50f961849a9a5f694e72329e8565f3c261e64a8 (patch) | |
tree | a3a9cf44f7536b1a7cec0c2d9728b43df21cc116 /numpy | |
parent | 9aac5430326820f2c17c0cbdcd9bf072728fface (diff) | |
download | numpy-d50f961849a9a5f694e72329e8565f3c261e64a8.tar.gz |
TST: Add test for ticket #1578
The usefullness of this test is questionable, as it only shows up
as a core dump when run under python-debug for python versions >= 2.7,
and then it will only fail if run before other failing tests. It is
included as it may be useful as a record.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/tests/test_regression.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py index f5ac0ceab..ac36aa479 100644 --- a/numpy/core/tests/test_regression.py +++ b/numpy/core/tests/test_regression.py @@ -1685,5 +1685,12 @@ class TestRegression(TestCase): tgt = (np.array([0, 1, 2]), np.array([ 0, 5, 11])) assert_equal(res, tgt) + def test_unicode_alloc_dealloc_match(self): + # Ticket #1578, the mismatch only showed up when running + # python-debug for python versions >= 2.7, and then as + # a core dump and error message. + a = np.array(['abc'], dtype=np.unicode)[0] + del a + if __name__ == "__main__": run_module_suite() |