mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-23 01:16:34 +03:00
Don't register the unicode typecaster globally during tests
It can invalidate the results in further runs in the same process.
This commit is contained in:
parent
131c6a25e9
commit
8b0af283f6
|
@ -71,7 +71,7 @@ class QuotingTestCase(unittest.TestCase):
|
|||
if not 0xD800 <= u <= 0xDFFF ])) # surrogate area
|
||||
self.conn.set_client_encoding('UNICODE')
|
||||
|
||||
psycopg2.extensions.register_type(psycopg2.extensions.UNICODE)
|
||||
psycopg2.extensions.register_type(psycopg2.extensions.UNICODE, self.conn)
|
||||
curs.execute("SELECT %s::text;", (data,))
|
||||
res = curs.fetchone()[0]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user