Changeset 586


Ignore:
Timestamp:
Nov 21, 2015, 11:16:22 PM (4 years ago)
Author:
cito
Message:

Get print tests running under Python 3

Location:
trunk/module
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/module/TEST_PyGreSQL_classic_connection.py

    r585 r586  
    499499            " union select 2, 'xyz', 'uvw'")
    500500        r = self.c.query(q)
    501         f = tempfile.TemporaryFile()
     501        f = tempfile.TemporaryFile('r+')
    502502        stdout, sys.stdout = sys.stdout, f
    503503        try:
  • trunk/module/TEST_PyGreSQL_classic_largeobj.py

    r580 r586  
    377377        data = 'some object to be printed'
    378378        self.obj.write(data)
    379         f = tempfile.TemporaryFile()
     379        f = tempfile.TemporaryFile('r+')
    380380        stdout, sys.stdout = sys.stdout, f
    381381        try:
Note: See TracChangeset for help on using the changeset viewer.