mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 23:34:45 +08:00
added failing test for import problems in py33
This commit is contained in:
12
test/test_imports.py
Normal file
12
test/test_imports.py
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
from jedi._compatibility import find_module_py33
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skipif('sys.version_info <= (3,2)')
|
||||||
|
def test_find_module_py33():
|
||||||
|
"""Needs to work like the old find_module."""
|
||||||
|
print(find_module_py33('_io'))
|
||||||
|
assert find_module_py33('_io') == (None, '_io', False)
|
||||||
Reference in New Issue
Block a user