From a3b66f29742fba71b103dc58ec4624d52362452b Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 3 Aug 2011 21:05:10 +0200 Subject: Correct a bug in the testsuite, and now, poppler + cairo are optional for running the testsuite. --- test/test.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/test.py b/test/test.py index 227170b..681a956 100644 --- a/test/test.py +++ b/test/test.py @@ -13,7 +13,19 @@ import tempfile import unittest VERBOSITY = 3 -FILE_LIST = zip(glob.glob('clean*'), glob.glob('dirty*')) + +clean = glob.glob('clean*') +clean.sort() +dirty = glob.glob('dirty*') +dirty.sort() +FILE_LIST = zip(clean, dirty) + +try: + import poppler + import cairo +except: + FILE_LIST.remove((('clean.pdf'), ('dirty.pdf'))) + class MATTest(unittest.TestCase): ''' -- cgit v1.3