ghostscript: avoid log=None construct

This commit is contained in:
James R. Barlow
2019-05-30 13:57:38 -07:00
parent db29cae177
commit 8ed4e229f3
4 changed files with 19 additions and 8 deletions
+1 -1
View File
@@ -268,7 +268,7 @@ def test_tesseract_orientation(resources, tmpdir):
pix_rotated = pix.rotate_orth(2) # 180 degrees clockwise
pix_rotated.write_implied_format(tmpdir / '000001.png')
log = Mock()
log = logging.getLogger()
tesseract.get_orientation( # Test results of this are unreliable
tmpdir / '000001.png', engine_mode='3', timeout=10, log=log
)