From ac4110fbfc60b112836d0b279ae07ea9a779b16d Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 20 Jan 2013 03:57:17 +0100 Subject: preliminary support of gtk3 (one test fails for PDF) --- test/clitest.py | 1 - test/test.py | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/clitest.py b/test/clitest.py index bc0a7fd..cfda322 100644 --- a/test/clitest.py +++ b/test/clitest.py @@ -21,7 +21,6 @@ class TestRemovecli(test.MATTest): def test_remove(self): '''make sure that the cli remove all compromizing meta''' for _, dirty in self.file_list: - subprocess.call(['../mat', dirty]) current_file = mat.create_class_file(dirty, False, add2archive=True, low_pdf_quality=True) self.assertTrue(current_file.is_clean()) diff --git a/test/test.py b/test/test.py index 675c4f9..f2970ff 100644 --- a/test/test.py +++ b/test/test.py @@ -15,7 +15,7 @@ import tempfile import unittest import subprocess -VERBOSITY = 3 +VERBOSITY = 5 clean = glob.glob('clean*') clean.sort() @@ -25,8 +25,9 @@ dirty.sort() FILE_LIST = zip(clean, dirty) try: # PDF render processing - import poppler import cairo + import gi + from gi.repository import Poppler import pdfrw except ImportError: FILE_LIST.remove(('clean é.pdf', 'dirty é.pdf')) -- cgit v1.3