diff options
author | da-woods <dw-git@d-woods.co.uk> | 2022-07-28 22:10:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-28 23:10:59 +0200 |
commit | 67c44be9dd01a7a5bdde8df928f0cd4139570e0e (patch) | |
tree | b1d05460dd69d1bc1e98e9fb10162cbaaa020921 /tests | |
parent | 1f71962268c7fa4d0361b38b172e7376fa904a61 (diff) | |
download | cython-67c44be9dd01a7a5bdde8df928f0cd4139570e0e.tar.gz |
Fix error where "import *" tried to overwrite a macro in utility code (GH-4930)
Closes https://github.com/cython/cython/issues/4927
Diffstat (limited to 'tests')
-rw-r--r-- | tests/memoryview/memslice.pyx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/memoryview/memslice.pyx b/tests/memoryview/memslice.pyx index ccf760c21..3a5943aa3 100644 --- a/tests/memoryview/memslice.pyx +++ b/tests/memoryview/memslice.pyx @@ -21,6 +21,12 @@ if sys.version_info[0] < 3: else: import builtins +try: + from Cython.Tests.this_module_does_not_exist import * +except ImportError: + # Fails, but the existence of "import *" interacted badly with some utility code + pass + def testcase(func): @wraps(func) |