Changeset 98e4106


Ignore:
Timestamp:
May 13, 2016, 5:54:49 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:
1164fd85
Parents:
ff89a06
Message:

python/tests/test_musicutils.py: simplify, check TypeError? is raised

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_musicutils.py

    rff89a06 r98e4106  
    1616
    1717    def test_fail_name_not_string(self):
    18         try:
     18        with self.assertRaises(TypeError):
    1919            window(10, 1024)
    20         except ValueError as e:
    21             pass
    22         else:
    23             self.fail('non-string window type does not raise a ValueError')
    2420
    2521    def test_fail_size_not_int(self):
    26         try:
     22        with self.assertRaises(TypeError):
    2723            window("default", "default")
    28         except ValueError as e:
    29             pass
    30         else:
    31             self.fail('non-integer window length does not raise a ValueError')
    3224
    3325    def test_compute_hanning_1024(self):
Note: See TracChangeset for help on using the changeset viewer.