diff options
| author | jvoisin | 2011-08-03 21:05:10 +0200 |
|---|---|---|
| committer | jvoisin | 2011-08-03 21:05:10 +0200 |
| commit | a3b66f29742fba71b103dc58ec4624d52362452b (patch) | |
| tree | 5fabf9f67c8884c003de7f19867c88f20e6f5239 | |
| parent | 2b3f7d7721ef7040d7b4d5e591cf9b2d3d9740e0 (diff) | |
Correct a bug in the testsuite, and now, poppler + cairo are optional for running the testsuite.
| -rw-r--r-- | test/test.py | 14 |
1 files changed, 13 insertions, 1 deletions
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 | |||
| 13 | import unittest | 13 | import unittest |
| 14 | 14 | ||
| 15 | VERBOSITY = 3 | 15 | VERBOSITY = 3 |
| 16 | FILE_LIST = zip(glob.glob('clean*'), glob.glob('dirty*')) | 16 | |
| 17 | clean = glob.glob('clean*') | ||
| 18 | clean.sort() | ||
| 19 | dirty = glob.glob('dirty*') | ||
| 20 | dirty.sort() | ||
| 21 | FILE_LIST = zip(clean, dirty) | ||
| 22 | |||
| 23 | try: | ||
| 24 | import poppler | ||
| 25 | import cairo | ||
| 26 | except: | ||
| 27 | FILE_LIST.remove((('clean.pdf'), ('dirty.pdf'))) | ||
| 28 | |||
| 17 | 29 | ||
| 18 | class MATTest(unittest.TestCase): | 30 | class MATTest(unittest.TestCase): |
| 19 | ''' | 31 | ''' |
