diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-11-11 14:38:56 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-11-11 14:38:56 -0500 |
| commit | 1eb56ef02a7fa825be99ddfb95f217a07dab1cdf (patch) | |
| tree | bf0857b7f42dec7db03910799eed7e5dda5e7c2b /test/test_ast.py | |
| parent | 4ab9664a515c265238d420b0373f7225fe2e53c7 (diff) | |
| download | external_python_mako-1eb56ef02a7fa825be99ddfb95f217a07dab1cdf.tar.gz external_python_mako-1eb56ef02a7fa825be99ddfb95f217a07dab1cdf.tar.bz2 external_python_mako-1eb56ef02a7fa825be99ddfb95f217a07dab1cdf.zip | |
- first pass at running a py3k compatible base in py2k as well.
having some weird unicode issues I can't debug; the meaning of
str.encode() seems to be changing globally somehow
Diffstat (limited to 'test/test_ast.py')
| -rw-r--r-- | test/test_ast.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_ast.py b/test/test_ast.py index 8e02811..84508c7 100644 --- a/test/test_ast.py +++ b/test/test_ast.py @@ -1,6 +1,6 @@ import unittest -from mako import ast, exceptions, pyparser, util +from mako import ast, exceptions, pyparser, util, compat from test import eq_, requires_python_2 exception_kwargs = { @@ -237,7 +237,7 @@ import x as bar parsed = ast.PythonFragment("try:", **exception_kwargs) - if util.py3k: + if compat.py3k: parsed = ast.PythonFragment( "except MyException as e:", **exception_kwargs) else: |
