comparison test/test_jinja2.py @ 5248:198b6e810c67

Use Python-3-compatible 'as' syntax for except statements Many raise statements near these are also fixed. So are two ivorrect file encoding marks ('utf8'->'utf-8').
author Eric S. Raymond <esr@thyrsus.com>
date Thu, 24 Aug 2017 22:21:37 -0400
parents 364c54991861
children d26921b851c3
comparison
equal deleted inserted replaced
5247:7f00a47b3559 5248:198b6e810c67
1 #-*- encoding: utf8 -*- 1 #-*- encoding: utf-8 -*-
2 """ Testing the jinja2 templating engine of roundup-tracker. 2 """ Testing the jinja2 templating engine of roundup-tracker.
3 3
4 Copyright: 2016 Intevation GmbH. 4 Copyright: 2016 Intevation GmbH.
5 Author: Bernhard E. Reiter <bernhard@intevation.de> 5 Author: Bernhard E. Reiter <bernhard@intevation.de>
6 6
39 39
40 def tearDown(self): 40 def tearDown(self):
41 self.db.close() 41 self.db.close()
42 try: 42 try:
43 shutil.rmtree(self.dirname) 43 shutil.rmtree(self.dirname)
44 except OSError, error: 44 except OSError as error:
45 if error.errno not in (errno.ENOENT, errno.ESRCH): raise 45 if error.errno not in (errno.ENOENT, errno.ESRCH): raise
46 46
47 def test_zero(self): 47 def test_zero(self):
48 """Do nothing just make sure that setup and teardown works.""" 48 """Do nothing just make sure that setup and teardown works."""
49 pass 49 pass

Roundup Issue Tracker: http://roundup-tracker.org/