From abb7a0154e593f6b2263c0a641b6b0d104cbc2a4 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 7 Nov 2011 11:23:20 +0100 Subject: Better modularity --- test/test.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'test/test.py') diff --git a/test/test.py b/test/test.py index 8c96e8d..5c1d9fd 100644 --- a/test/test.py +++ b/test/test.py @@ -10,6 +10,7 @@ import os import glob import tempfile import unittest +import subprocess VERBOSITY = 3 @@ -20,12 +21,23 @@ dirty.sort() FILE_LIST = zip(clean, dirty) -try: +try: # pdf render processing import poppler import cairo except: FILE_LIST.remove((('clean.pdf'), ('dirty.pdf'))) +try: # python-mutagen : audio file format + import mutagen +except: + FILE_LIST.remove(('clean.mp3'), ('dirty.mp3')) + FILE_LIST.remove(('clean.ogg'), ('dirty.ogg')) + +try: # file format managed by exiftool + subprocess.Popen('exiftool', stdout=open('/dev/null')) +except: + pass # None for now + class MATTest(unittest.TestCase): ''' -- cgit v1.3