mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Get print to work in test_build
This commit is contained in:
parent
0d82c22087
commit
b4c0513d85
@ -9,7 +9,7 @@ __docformat__ = 'restructuredtext en'
|
||||
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_ci = os.environ.get('CI', '').lower() == 'true'
|
||||
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…
x
Reference in New Issue
Block a user