mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-10 07:41:51 +08:00
19 lines
426 B
Python
19 lines
426 B
Python
"""
|
|
Test compiled module
|
|
"""
|
|
import os
|
|
import platform
|
|
import sys
|
|
import jedi
|
|
|
|
from .helpers import cwd_at
|
|
|
|
|
|
@cwd_at('extensions')
|
|
def test_compiled():
|
|
if platform.architecture()[0] == '64bit':
|
|
package_name = "compiled%s%s" % sys.version_info[:2]
|
|
if os.path.exists(package_name):
|
|
s = jedi.Script("from %s import compiled; compiled." % package_name)
|
|
assert len(s.completions()) >= 2
|