mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Suppress the warning about cgi deprecation that is causing tests with warnings turned into errors to fail
This commit is contained in:
parent
26ab48337b
commit
c1e5dd0fbb
@ -40,6 +40,11 @@ class Test(Command):
|
|||||||
self.info(f'Re-execing with LD_PRELOAD={os.environ["LD_PRELOAD"]}')
|
self.info(f'Re-execing with LD_PRELOAD={os.environ["LD_PRELOAD"]}')
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
os.execl('setup.py', *sys.argv)
|
os.execl('setup.py', *sys.argv)
|
||||||
|
|
||||||
|
# cgi is used by feedparser and possibly other dependencies
|
||||||
|
import warnings
|
||||||
|
warnings.filterwarnings('ignore', message="'cgi' is deprecated and slated for removal in Python 3.13")
|
||||||
|
|
||||||
if is_ci and ismacos:
|
if is_ci and ismacos:
|
||||||
import ctypes
|
import ctypes
|
||||||
sys.libxml2_dylib = ctypes.CDLL(os.path.join(os.environ['SW'], 'lib', 'libxml2.dylib'))
|
sys.libxml2_dylib = ctypes.CDLL(os.path.join(os.environ['SW'], 'lib', 'libxml2.dylib'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user