Python 3 fix for the template loader test.

This commit is contained in:
Murtuza Zabuawala
2017-01-31 10:02:20 +00:00
committed by Dave Page
parent c6b67fc66a
commit 2e5771e164

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__("")