Changeset 649


Ignore:
Timestamp:
Nov 27, 2015, 12:46:15 PM (4 years ago)
Author:
cito
Message:

Use unittest2 for the dbapi20 tests

Location:
trunk/module/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/module/tests/dbapi20.py

    r640 r649  
    1616__author__ = 'Stuart Bishop <zen@shangri-la.dropbear.id.au>'
    1717
    18 import unittest
     18try:
     19    import unittest2 as unittest  # for Python < 2.7
     20except ImportError:
     21    import unittest
     22
    1923import time
    2024
  • trunk/module/tests/test_dbapi20.py

    r648 r649  
    33# $Id$
    44
    5 import unittest
     5try:
     6    import unittest2 as unittest  # for Python < 2.7
     7except ImportError:
     8    import unittest
    69
    710import pgdb
Note: See TracChangeset for help on using the changeset viewer.