diff options
Diffstat (limited to 'tests/run/unicode_identifiers_import.pyx')
-rw-r--r-- | tests/run/unicode_identifiers_import.pyx | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/run/unicode_identifiers_import.pyx b/tests/run/unicode_identifiers_import.pyx new file mode 100644 index 000000000..17e091697 --- /dev/null +++ b/tests/run/unicode_identifiers_import.pyx @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# cython: language_level = 3 +# mode: compile +# tag: pep3131 + +# compile only test since there's no way to get +# it to import another test module at runtime + +# this test looks at [c]importing unicode stuff +from unicode_identifiers cimport Fα1, Γναμε2 +cimport unicode_identifiers +from unicode_identifiers cimport Γναμε2 as Γναμε3 + +from unicode_identifiers import NormalClassΓΓ +from unicode_identifiers import NormalClassΓΓ as NörmalCläss + + +cdef class C(unicode_identifiers.Γναμε2): + pass + +cdef class D(Γναμε2): + pass + +cdef class E(Γναμε3): + pass + +def f(): + Fα1() + unicode_identifiers.Fα1() + + |