mirror of
https://github.com/kennethreitz-archive/pyinstaller.git
synced 2026-06-05 23:50:17 +00:00
af7a81fbf7
git-svn-id: http://svn.pyinstaller.org/trunk@10 8dd32b29-ccff-0310-8a9a-9233e24343b1
16 lines
317 B
Python
16 lines
317 B
Python
#!/usr/bin/env python
|
|
import sys
|
|
|
|
try:
|
|
import codecs
|
|
except ImportError:
|
|
print "This test works only with Python versions that support Unicode"
|
|
sys.exit(0)
|
|
|
|
a = "foo bar"
|
|
au = codecs.getdecoder("utf-8")(a)[0]
|
|
b = codecs.getencoder("utf-8")(au)[0]
|
|
print "codecs working:", a == b
|
|
assert a == b
|
|
sys.exit(0)
|