Python 3 fix for the template loader test.

pull/3/head
Murtuza Zabuawala 2017-01-31 10:02:20 +00:00 committed by Dave Page
parent c6b67fc66a
commit 2e5771e164
1 changed files with 2 additions and 1 deletions

View File

@ -47,9 +47,10 @@ class TestVersionedTemplateLoader(BaseTestGenerator):
try:
self.loader.get_source(None, "some_feature/sql/#10100#/some_action.sql")
self.fail("No exception raised")
except TemplateNotFound, e:
except TemplateNotFound:
return
class FakeApp(Flask):
def __init__(self):
super(FakeApp, self).__init__("")