From: Paul Brossier Date: Mon, 2 May 2016 12:54:50 +0000 (+0200) Subject: python/tests/test_fvec.py: add test_pass_to_numpy X-Git-Tag: 0.4.4~300^2~139 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=fb3f62e68a600cbb169b0a3ef7b53a6e568183dc;p=aubio.git python/tests/test_fvec.py: add test_pass_to_numpy --- diff --git a/python/tests/test_fvec.py b/python/tests/test_fvec.py index 2e3b5cb3..c147b1f6 100755 --- a/python/tests/test_fvec.py +++ b/python/tests/test_fvec.py @@ -135,6 +135,18 @@ class aubio_fvec_test_case(TestCase): 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()