Remove typing module from version.py
It comes with python now
This commit is contained in:
parent
b1b6c462c1
commit
8ae87bbde2
@ -190,7 +190,6 @@ def _module_versions():
|
||||
('pygments', ['__version__']),
|
||||
('yaml', ['__version__']),
|
||||
('cssutils', ['__version__']),
|
||||
('typing', []),
|
||||
('PyQt5.QtWebEngineWidgets', []),
|
||||
('PyQt5.QtWebKitWidgets', []),
|
||||
])
|
||||
|
@ -515,12 +515,10 @@ class ImportFake:
|
||||
('pygments', True),
|
||||
('yaml', True),
|
||||
('cssutils', True),
|
||||
('typing', True),
|
||||
('PyQt5.QtWebEngineWidgets', True),
|
||||
('PyQt5.QtWebKitWidgets', True),
|
||||
])
|
||||
self.no_version_attribute = ['sip', 'typing',
|
||||
'PyQt5.QtWebEngineWidgets',
|
||||
self.no_version_attribute = ['sip', 'PyQt5.QtWebEngineWidgets',
|
||||
'PyQt5.QtWebKitWidgets']
|
||||
self.version_attribute = '__version__'
|
||||
self.version = '1.2.3'
|
||||
@ -588,7 +586,6 @@ class TestModuleVersions:
|
||||
@pytest.mark.parametrize('module, idx, expected', [
|
||||
('colorama', 1, 'colorama: no'),
|
||||
('cssutils', 6, 'cssutils: no'),
|
||||
('typing', 7, 'typing: no'),
|
||||
])
|
||||
def test_missing_module(self, module, idx, expected, import_fake):
|
||||
"""Test with a module missing.
|
||||
|
Loading…
Reference in New Issue
Block a user