Changeset 7280e67 for tests


Ignore:
Timestamp:
Oct 8, 2009, 9:03:35 PM (10 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
b45b4ea
Parents:
8802f92
Message:

tests/python/examples/aubiopitch.py: do not fail if file is missing, print out where to find it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/python/examples/aubiopitch.py

    r8802f92 r7280e67  
    4444class aubiopitch_test_yinfft(program_test_case):
    4545
    46   filename = os.path.join('..','..','sounds','16568_acclivity_TwoCows.wav')
     46  filename = os.path.join('..','..','sounds','16568__acclivity__TwoCows.wav')
     47  url = "http://www.freesound.org/samplesViewSingle.php?id=16568"
    4748  progname = "PYTHONPATH=../../python:../../python/aubio/.libs " + \
    4849              os.path.join('..','..','python','aubiopitch')
     
    5152  def test_aubiopitch(self):
    5253    """ test aubiopitch with default parameters """
     54    if not os.path.isfile(self.filename):
     55      print "Warning: file 16568_acclivity_TwoCows.wav was not found in %s" % os.path.dirname(self.filename)
     56      print "download it from %s to actually run test" % url
     57      return
    5358    self.getOutput()
    5459    expected_output = open(os.path.join('examples','aubiopitch','yinfft'+'.'+os.path.basename(self.filename)+'.txt')).read()
Note: See TracChangeset for help on using the changeset viewer.