FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnet/src/tests/test_import.py at pytests-core · attackgithub/pythonnet · GitHub
attackgithub
pythonnet
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnet
/
src
/
tests
/
test_import.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (9 loc) · 357 Bytes
Breadcrumbs
pythonnet
/
src
/
tests
/
test_import.py
Copy path
File metadata and controls
13 lines (9 loc) · 357 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
# -*- coding: utf-8 -*-
"""Test the import statement."""
import
pytest
def
test_relative_missing_import
():
"""Test that a relative missing import doesn't crash.
Some modules use this to check if a package is installed.
Relative import in the site-packages folder"""
with
pytest
.
raises
(
ImportError
):
from
.
import
_missing_import
Back
|
FazBrowse Home
|
New Git URL