Fix two failing tests

This commit is contained in:
James R. Barlow
2018-11-06 11:16:08 -08:00
parent 03076e89ce
commit 501ce726e7
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -68,8 +68,8 @@ def test_crop(resources):
assert foreground.width < pix.width
def test_clean_bg(crom_pix):
pix, _ = crom_pix
def test_clean_bg(resources):
pix = lept.Pix.open(resources / 'congress.jpg')
imbg = pix.clean_background_to_white()
@@ -86,4 +86,4 @@ def test_leptonica_compile(tmpdir):
# Compile the library but build it somewhere that won't interfere with
# existing compiled library. Also compile in API mode so that we test
# the interfaces, even though we use it ABI mode.
ffibuilder.compile(tmpdir=tmpdir, target=(tmpdir /'lepttest.*'))
ffibuilder.compile(tmpdir=tmpdir, target=(tmpdir / 'lepttest.*'))
+1 -1
View File
@@ -151,7 +151,7 @@ def test_pickle(resources):
def test_regex():
rx = pdfinfo.regex_remove_char_tags
rx = pdfinfo.ghosttext.regex_remove_char_tags
must_match = [
b'<char bbox="0 108 0 108" c="/"/>',