shithub: aubio

Download patch

ref: fb3f62e68a600cbb169b0a3ef7b53a6e568183dc
parent: cdfad0c62d5efe2ac469f22186e4527bbdbdd7bf
author: Paul Brossier <piem@piem.org>
date: Mon May 2 10:54:50 EDT 2016

python/tests/test_fvec.py: add test_pass_to_numpy

--- a/python/tests/test_fvec.py
+++ b/python/tests/test_fvec.py
@@ -135,6 +135,18 @@
         assert_equal (b, [19, 0, 18])
         assert_equal (a, b)
 
+    def test_pass_to_numpy(self):
+        a = fvec(10)
+        a = 1.
+        b = a
+        del a
+        assert_equal (b, 1.)
+        c = fvec(10)
+        c = b
+        del b
+        assert_equal (c, 1.)
+        del c
+
 if __name__ == '__main__':
     from unittest import main
     main()