File: test_dlopen_unicode_literals.py

package info (click to toggle)
python-cffi 2.0.0~b1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,796 kB
  • sloc: python: 28,456; ansic: 15,272; asm: 116; makefile: 97; sh: 14
file content (9 lines) | stat: -rw-r--r-- 214 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
import os

s = """from __future__ import unicode_literals
"""

with open(os.path.join(os.path.dirname(__file__), 'test_dlopen.py')) as f:
    s += f.read()

exec(compile(s, filename='test_dlopen.py', mode='exec'))