Skip to content

Commit 71f199e

Browse files
committed
Adjust test_import to always trigger error-case
1 parent 4e61c18 commit 71f199e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/test_import.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
import pytest
66
import sys
77

8+
# Unused import to preload the class
9+
#
10+
# This resulted in the FileStream name missing from the wildcard import later
11+
from System.IO import FileStream # noqa: F401
12+
813
def test_relative_missing_import():
914
"""Test that a relative missing import doesn't crash.
1015
Some modules use this to check if a package is installed.

0 commit comments

Comments
 (0)