Changeset 551


Ignore:
Timestamp:
Nov 20, 2015, 5:37:49 AM (4 years ago)
Author:
cito
Message:

StandardError? has been removed in Python 3.

We now subclass from Exception instead, even in Python 2.
This is a slight incompatibility, but it has never been
documented anyway and makes the behavior more uniform.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module/TEST_PyGreSQL_classic_functions.py

    r550 r551  
    167167
    168168    def testhasPgError(self):
    169         self.assertTrue(issubclass(pg.Error, StandardError))
     169        self.assertTrue(issubclass(pg.Error, Exception))
    170170
    171171    def testhasPgWarning(self):
    172         self.assertTrue(issubclass(pg.Warning, StandardError))
     172        self.assertTrue(issubclass(pg.Warning, Exception))
    173173
    174174    def testhasPgInterfaceError(self):
Note: See TracChangeset for help on using the changeset viewer.