Changeset 532


Ignore:
Timestamp:
Nov 16, 2015, 11:41:34 PM (4 years ago)
Author:
darcy
Message:

Make sure tables from failed runs are cleared out.
Run under Python 2 or 3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module/TEST_PyGreSQL_classic.py

    r525 r532  
    11#! /usr/bin/python
    22
    3 from __future__ import with_statement
     3from __future__ import with_statement, print_function
    44
    55import sys
     
    2929    return db
    3030
     31db = opendb()
     32for q in (
     33    "DROP TABLE _test1._test_schema",
     34    "DROP TABLE _test2._test_schema",
     35    "DROP SCHEMA _test1",
     36    "DROP SCHEMA _test2",
     37):
     38    try: db.query(q)
     39    except: pass
     40db.close()
    3141
    3242class UtilityTest(unittest.TestCase):
Note: See TracChangeset for help on using the changeset viewer.