mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Exclude winsapi from import all tests on non-windows
This commit is contained in:
parent
dd6c244974
commit
d6887a1bfd
@ -41,7 +41,7 @@ class TestImports(unittest.TestCase):
|
||||
exclude_packages = {'calibre.devices.mtp.unix.upstream'}
|
||||
if not iswindows:
|
||||
exclude_modules |= {'calibre.utils.iphlpapi', 'calibre.utils.open_with.windows', 'calibre.devices.winusb'}
|
||||
exclude_packages |= {'calibre.utils.winreg'}
|
||||
exclude_packages |= {'calibre.utils.winreg', 'calibre.utils.windows'}
|
||||
if not ismacos:
|
||||
exclude_modules.add('calibre.utils.open_with.osx')
|
||||
if not islinux:
|
||||
|
@ -2,9 +2,10 @@
|
||||
# vim:fileencoding=utf-8
|
||||
# License: GPL v3 Copyright: 2020, Kovid Goyal <kovid at kovidgoyal.net>
|
||||
|
||||
from calibre_extensions.winsapi import ISpVoice
|
||||
|
||||
|
||||
def develop():
|
||||
from calibre_extensions.winsapi import ISpVoice
|
||||
from pprint import pprint
|
||||
spv = ISpVoice()
|
||||
voices = spv.get_all_voices()
|
||||
@ -15,7 +16,6 @@ def develop():
|
||||
|
||||
def find_tests():
|
||||
import unittest
|
||||
from calibre_extensions.winsapi import ISpVoice
|
||||
|
||||
class TestSAPI(unittest.TestCase):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user