[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/attackgithub/pythonnet/pytests-core/src/tests/test_import.py [Back]  [Original]

# -*- 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

Web Proxy Viewer  |  New URL  |  Original Page