Changeset fb3f62e for python


Ignore:
Timestamp:
May 2, 2016, 2:54:50 PM (9 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
5dc1abc
Parents:
cdfad0c6
Message:

python/tests/test_fvec.py: add test_pass_to_numpy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_fvec.py

    rcdfad0c6 rfb3f62e  
    136136        assert_equal (a, b)
    137137
     138    def test_pass_to_numpy(self):
     139        a = fvec(10)
     140        a = 1.
     141        b = a
     142        del a
     143        assert_equal (b, 1.)
     144        c = fvec(10)
     145        c = b
     146        del b
     147        assert_equal (c, 1.)
     148        del c
     149
    138150if __name__ == '__main__':
    139151    from unittest import main
Note: See TracChangeset for help on using the changeset viewer.