diff -ur testoob.orig/testoob-1.15.ebuild testoob/testoob-1.15.ebuild --- testoob.orig/testoob-1.15.ebuild 2011-12-04 02:22:13.055079901 +0800 +++ testoob/testoob-1.15.ebuild 2011-12-04 02:23:08.624079925 +0800 @@ -24,6 +24,10 @@ DOCS="docs/*" +src_prepare() { + epatch "${FILESDIR}"/testoob-test.patch || die +} + src_test() { testing() { PATH="build-${PYTHON_ABI}/scripts-${PYTHON_ABI}:${PATH}" PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" tests/alltests.py diff -ur testoob-1.15.orig/tests/large/test_commandline.py testoob-1.15/tests/large/test_commandline.py --- tests/large/test_commandline.py 2009-10-08 06:08:46.000000000 +0800 +++ tests/large/test_commandline.py 2011-12-04 01:45:14.664078975 +0800 @@ -277,7 +277,8 @@ def testPDFReporting(self): pdfcontents = self._get_file_report("pdf") - self.assertEquals( '%PDF-1.3', pdfcontents.splitlines()[0] ) + teststr = pdfcontents.splitlines()[0] + self.assertTrue(teststr.startswith("%PDF-1")) def testGlob(self): args = _testoob_args(options=["-v", "--glob=*Database*"], tests=["CaseNames"])