diff options
author | Gabi Davar <grizzly.nyo@gmail.com> | 2015-08-27 17:07:48 +0300 |
---|---|---|
committer | Gabi Davar <grizzly.nyo@gmail.com> | 2015-08-27 17:35:01 +0300 |
commit | 363f21046ece217bc663db083f01829bd074fb48 (patch) | |
tree | d0e93c075f14f2951ef16f430e0c2c9523cd3ff5 /test/ext | |
parent | 1de5a335f4a96b0eedd801b5d885a2592735a497 (diff) | |
download | mako-363f21046ece217bc663db083f01829bd074fb48.tar.gz |
correct template lookup on Windows:
- posixpath.join does not handle windows paths very well.
Now all tests pass on py27 & py34 on windows.
Diffstat (limited to 'test/ext')
-rw-r--r-- | test/ext/test_babelplugin.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/ext/test_babelplugin.py b/test/ext/test_babelplugin.py index c66260e..3789b58 100644 --- a/test/ext/test_babelplugin.py +++ b/test/ext/test_babelplugin.py @@ -6,11 +6,10 @@ from mako import compat try: import babel.messages.extract as babel -except: - babel = None - -if babel is not None: from mako.ext.babelplugin import extract + +except ImportError: + babel = None def skip(): |