Show More
@@ -0,0 +1,18 b'' | |||||
|
1 | # coding: utf-8 | |||
|
2 | """These tests have to be run separately from the main test suite (iptest), | |||
|
3 | because that sets the default encoding to utf-8, and it cannot be changed after | |||
|
4 | the interpreter is up and running. The default encoding in a Python 2.x | |||
|
5 | environment is ASCII.""" | |||
|
6 | import unittest, sys | |||
|
7 | ||||
|
8 | from IPython.core import compilerop | |||
|
9 | ||||
|
10 | assert sys.getdefaultencoding() == "ascii" | |||
|
11 | ||||
|
12 | class CompileropTest(unittest.TestCase): | |||
|
13 | def test_accept_unicode(self): | |||
|
14 | cp = compilerop.CachingCompiler() | |||
|
15 | cp(u"t = 'žćčšđ'", "single") | |||
|
16 | ||||
|
17 | if __name__ == "__main__": | |||
|
18 | unittest.main() |
General Comments 0
You need to be logged in to leave comments.
Login now