summaryrefslogtreecommitdiff
path: root/testing/cffi1/test_dlopen_unicode_literals.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/cffi1/test_dlopen_unicode_literals.py')
-rw-r--r--testing/cffi1/test_dlopen_unicode_literals.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/cffi1/test_dlopen_unicode_literals.py b/testing/cffi1/test_dlopen_unicode_literals.py
index e792866..dc955a5 100644
--- a/testing/cffi1/test_dlopen_unicode_literals.py
+++ b/testing/cffi1/test_dlopen_unicode_literals.py
@@ -1,4 +1,4 @@
-import py, os
+import os
s = """from __future__ import unicode_literals
"""
@@ -6,4 +6,4 @@ s = """from __future__ import unicode_literals
with open(os.path.join(os.path.dirname(__file__), 'test_dlopen.py')) as f:
s += f.read()
-exec(py.code.compile(s))
+exec(compile(s, filename='test_dlopen.py', mode='exec'))