Skip to content

Commit ab2c071

Browse files
change test encoding.
1 parent 40c5710 commit ab2c071

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tests/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_PdfReaderFileLoad(self):
3232
ipdf_p1_text = ipdf_p1.extractText().replace('\n', '')
3333

3434
# Compare the text of the PDF to a known source
35-
self.assertEqual(ipdf_p1_text.encode('utf-8', errors='ignore'), pdftext,
35+
self.assertEqual(ipdf_p1_text, pdftext,
3636
msg='PDF extracted text differs from expected value.\n\nExpected:\n\n%r\n\nExtracted:\n\n%r\n\n'
3737
% (pdftext, ipdf_p1_text.encode('utf-8', errors='ignore')))
3838

0 commit comments

Comments
 (0)