mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-16 12:35:57 +01:00
Get print to work in test_build
This commit is contained in:
parent
e399c05ec4
commit
a01fb4ee57
1 changed files with 5 additions and 1 deletions
|
|
@ -9,7 +9,7 @@
|
|||
Test a binary calibre build to ensure that all needed binary images/libraries have loaded.
|
||||
'''
|
||||
|
||||
import os, ctypes, sys, unittest, time, shutil
|
||||
import os, ctypes, sys, unittest, time, shutil, builtins
|
||||
|
||||
from calibre.constants import iswindows, islinux, ismacos, plugins_loc
|
||||
from polyglot.builtins import iteritems
|
||||
|
|
@ -18,6 +18,10 @@
|
|||
is_sanitized = 'libasan' in os.environ.get('LD_PRELOAD', '')
|
||||
|
||||
|
||||
def print(*a):
|
||||
builtins.print(*a, flush=True, file=sys.__stdout__)
|
||||
|
||||
|
||||
class BuildTest(unittest.TestCase):
|
||||
|
||||
@unittest.skipUnless(iswindows and not is_ci, 'DLL loading needs testing only on windows (non-continuous integration)')
|
||||
|
|
|
|||
Loading…
Reference in a new issue