Skip to content

Commit e39b7d6

Browse files
Only test signatures of the C implementation.
1 parent a56bc55 commit e39b7d6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_inspect/test_inspect.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5832,6 +5832,8 @@ def test_collections_abc_module_has_signatures(self):
58325832
self._test_module_has_signatures(collections.abc)
58335833

58345834
def test_datetime_module_has_signatures(self):
5835+
# Only test if the C implementation is available.
5836+
support.import_module('_datetime')
58355837
import datetime
58365838
no_signature = {'tzinfo'}
58375839
unsupported_signature = {'timezone'}

0 commit comments

Comments
 (0)