~cjwatson/storm/py3-mocker-inspect

« back to all changes in this revision

Viewing changes to tests/zope/zstorm.py

  • Committer: Colin Watson
  • Date: 2019-05-31 15:28:04 UTC
  • mfrom: (487.2.2 py3-exceptions)
  • Revision ID: cjwatson@canonical.com-20190531152804-jk4ykojm7k1fvjtf
Use Python 3-friendly "except" syntax. [r=simpoir]

Show diffs side-by-side

added added

removed removed

Lines of Context:
368
368
                    store.execute("SELECT 1")
369
369
                except ZStormError:
370
370
                    failures.append("ZStormError raised")
371
 
                except Exception, exc:
 
371
                except Exception as exc:
372
372
                    failures.append("Expected ZStormError, got %r" % exc)
373
373
                else:
374
374
                    failures.append("Expected ZStormError, nothing raised")