Skip to content

Commit 544332a

Browse files
Fix test, add news
1 parent 82d4f00 commit 544332a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

doc/whatsnew/fragments/10112.bugfix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Fix ``Unable to import 'collections.abc' (import-error)`` on Python 3.13.1.
2+
3+
Closes #10112

tests/functional/n/no/no_member_imports.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ def test_ignored_modules_root_one_applies_as_well() -> None:
3333

3434

3535
def test_ignored_modules_patterns() -> None:
36-
import collections
36+
import importlib
3737

38-
collections.abc.THIS_does_not_EXIST
38+
importlib.metadata.THIS_does_not_EXIST
3939

4040

4141
def test_ignored_classes_no_recursive_pattern() -> None:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[TYPECHECK]
2-
ignored-modules=argparse,xml.etree.,collections.abc*
2+
ignored-modules=argparse,xml.etree.,importlib.metadata*
33
ignored-classes=sys*,optparse.Values,Option

0 commit comments

Comments
 (0)