projects/guix·blob python-team · refs

40 lines · 1.8 KiB

1diff --git a/src/calibre/utils/run_tests.py b/src/calibre/utils/run_tests.py
2--- a/src/calibre/utils/run_tests.py
3+++ b/src/calibre/utils/run_tests.py
4@@ -175,36 +175,6 @@
5 count += 1
6 return count
7
8- def test_import_of_all_python_modules(self):
9- from calibre.constants import isbsd, islinux, ismacos, iswindows
10- exclude_packages = {'calibre.devices.mtp.unix.upstream'}
11- exclude_modules = set()
12- if not iswindows:
13- exclude_modules |= {'calibre.utils.iphlpapi', 'calibre.utils.open_with.windows', 'calibre.devices.winusb'}
14- exclude_packages |= {'calibre.utils.winreg', 'calibre.utils.windows'}
15- if not ismacos:
16- exclude_modules.add('calibre.utils.open_with.osx')
17- if not islinux:
18- exclude_modules |= {
19- 'calibre.linux', 'calibre.gui2.tts.speechd',
20- 'calibre.utils.linux_trash', 'calibre.utils.open_with.linux',
21- 'calibre.gui2.linux_file_dialogs',
22- }
23- if 'SKIP_SPEECH_TESTS' in os.environ:
24- exclude_packages.add('calibre.gui2.tts')
25- if not isbsd:
26- exclude_modules.add('calibre.devices.usbms.hal')
27- d = os.path.dirname
28- SRC = d(d(d(os.path.abspath(__file__))))
29- self.assertGreater(self.base_check(os.path.join(SRC, 'odf'), exclude_packages, exclude_modules), 10)
30- base = os.path.join(SRC, 'calibre')
31- self.assertGreater(self.base_check(base, exclude_packages, exclude_modules), 1000)
32-
33- import calibre.web.feeds.feedparser as f
34- del f
35- from calibre.ebooks.markdown import Markdown
36- del Markdown
37-
38
39 def find_tests(which_tests=None, exclude_tests=None):
40 from calibre.constants import iswindows