Ignore:
Timestamp:
May 16, 2016, 5:08:18 AM (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:
a6f9ebf
Parents:
58a5fb9
Message:

python/tests: fix most prospect warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_fvec.py

    r58a5fb9 r0b6d23d  
    11#! /usr/bin/env python
    22
     3from unittest import main
    34import numpy as np
    45from numpy.testing import TestCase, assert_equal, assert_almost_equal
     
    5051        self.assertRaises(ValueError, fvec, -10)
    5152
    52     def test_negative_length(self):
     53    def test_zero_length(self):
    5354        """ test creating fvec with zero length fails (pure python) """
    5455        self.assertRaises(ValueError, fvec, 0)
     
    129130    def test_pass_to_numpy(self):
    130131        a = fvec(10)
    131         a = 1.
     132        a[:] = 1.
    132133        b = a
    133134        del a
     
    140141
    141142if __name__ == '__main__':
    142     from unittest import main
    143143    main()
Note: See TracChangeset for help on using the changeset viewer.