Skip to content

Commit 8fd979c

Browse files
Disable import-error in deprecated module tests
1 parent 513c5de commit 8fd979c

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""Test deprecated modules from Python 3.9."""
2-
# pylint: disable=unused-import
2+
# pylint: disable=unused-import, import-error
33

4-
import binhex # [deprecated-module, import-error]
4+
import binhex # [deprecated-module]
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
deprecated-module:4:0:4:13::Deprecated module 'binhex':UNDEFINED
2-
import-error:4:0:4:13::Unable to import 'binhex':UNDEFINED
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Test deprecated modules from Python 3.9,
22
but use an earlier --py-version and ensure a warning is still emitted.
33
"""
4-
# pylint: disable=unused-import
4+
# pylint: disable=unused-import, import-error
55

6-
import binhex # [deprecated-module, import-error]
6+
import binhex # [deprecated-module]
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
deprecated-module:6:0:6:13::Deprecated module 'binhex':UNDEFINED
2-
import-error:6:0:6:13::Unable to import 'binhex':UNDEFINED

0 commit comments

Comments
 (0)