| 1 |
"""Test that invalid module name imports causes correct error""" |
| 2 |
# pylint: disable=import-error, wrong-import-position, unused-wildcard-import, wildcard-import, wrong-import-order |
| 3 |
import sys |
| 4 |
import os |
| 5 |
|
| 6 |
# allow module imports to test that this is indeed a valid python file |
| 7 |
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) |
| 8 |
sys.path.append(os.path.dirname(SCRIPT_DIR)) |
| 9 |
|
| 10 |
import non_ascii_name_loł as ok |
| 11 |
from pathlib import * # test that star imports work correctly and give no error |
| 12 |
|
| 13 |
print(ok) |