summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2022-04-19 09:53:20 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2022-04-19 09:53:20 +0300
commitc3ec427ca440b2414083291e19982faec6e37b6e (patch)
tree07798771be31ba82880f466511e304e7bf0fc1ed /dev-python/PyPDF2/files
parentdev-python/PyPDF2: Stabilize 1.27.5 x86, #839372 (diff)
downloadgentoo-c3ec427ca440b2414083291e19982faec6e37b6e.tar.gz
gentoo-c3ec427ca440b2414083291e19982faec6e37b6e.tar.bz2
gentoo-c3ec427ca440b2414083291e19982faec6e37b6e.zip
dev-python/PyPDF2: drop 1.26.0-r2, 1.27.1, 1.27.3, 1.27.4
Bug: https://bugs.gentoo.org/839354 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/PyPDF2/files')
-rw-r--r--dev-python/PyPDF2/files/PyPDF2-1.26.0-py3-tests.patch35
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):
-