diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:57:42 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:57:42 +0100 |
commit | 1798c4aeca70ac8d0a243684d6a798fbc65735f8 (patch) | |
tree | e48e19cb6fa03de18e1c63e1a93371b7ebc4eb56 /dev-python/PyPDF2/files | |
parent | d87262dd706fec50cd150aab3e93883b6337466d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/PyPDF2/files')
-rw-r--r-- | dev-python/PyPDF2/files/PyPDF2-1.26.0-py3-tests.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/dev-python/PyPDF2/files/PyPDF2-1.26.0-py3-tests.patch b/dev-python/PyPDF2/files/PyPDF2-1.26.0-py3-tests.patch deleted file mode 100644 index c74491b964a3..000000000000 --- a/dev-python/PyPDF2/files/PyPDF2-1.26.0-py3-tests.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 6b46d03ee3a5bd5c2c18fae8aec8a0020ee68add Mon Sep 17 00:00:00 2001 -From: Venelin Stoykov <vkstoykov@gmail.com> -Date: Sat, 26 Dec 2015 17:26:00 +0200 -Subject: [PATCH 2/3] Fix tests for Python 3 - ---- - Tests/tests.py | 11 ++++++----- - 1 file changed, 6 insertions(+), 5 deletions(-) - -diff --git a/Tests/tests.py b/Tests/tests.py -index fa93c10..83b5951 100644 ---- a/Tests/tests.py -+++ b/Tests/tests.py -@@ -27,14 +27,15 @@ def test_PdfReaderFileLoad(self): - ipdf_p1 = ipdf.getPage(0) - - # Retrieve the text of the PDF -- pdftext_file = open(os.path.join(RESOURCE_ROOT, 'crazyones.txt'), 'r') -- pdftext = pdftext_file.read() -- ipdf_p1_text = ipdf_p1.extractText().replace('\n', '') -+ with open(os.path.join(RESOURCE_ROOT, 'crazyones.txt'), 'rb') as pdftext_file: -+ pdftext = pdftext_file.read() -+ -+ ipdf_p1_text = ipdf_p1.extractText().replace('\n', '').encode('utf-8') - - # Compare the text of the PDF to a known source -- self.assertEqual(ipdf_p1_text.encode('utf-8', errors='ignore'), pdftext, -+ self.assertEqual(ipdf_p1_text, pdftext, - msg='PDF extracted text differs from expected value.\n\nExpected:\n\n%r\n\nExtracted:\n\n%r\n\n' -- % (pdftext, ipdf_p1_text.encode('utf-8', errors='ignore'))) -+ % (pdftext, ipdf_p1_text)) - - - class AddJsTestCase(unittest.TestCase): - |