Mercurial > p > roundup > code
comparison test/test_postgresql.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 | 917e45d9ba08 |
| children | efb34cbdba7c |
comparison
equal
deleted
inserted
replaced
| 5247:7f00a47b3559 | 5248:198b6e810c67 |
|---|---|
| 107 | 107 |
| 108 def tearDown(self): | 108 def tearDown(self): |
| 109 try: | 109 try: |
| 110 self.db1.close() | 110 self.db1.close() |
| 111 self.db2.close() | 111 self.db2.close() |
| 112 except psycopg.InterfaceError, exc: | 112 except psycopg.InterfaceError as exc: |
| 113 if 'connection already closed' in str(exc): pass | 113 if 'connection already closed' in str(exc): pass |
| 114 else: raise | 114 else: raise |
| 115 ClassicInitBase.tearDown(self) | 115 ClassicInitBase.tearDown(self) |
| 116 postgresqlOpener.tearDown(self) | 116 postgresqlOpener.tearDown(self) |
| 117 | 117 |
