mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 09:24:07 +03:00
Fixed standard_conforming_strings filtering in Python 3 tests
This commit is contained in:
parent
9f90f049ab
commit
bde443a902
|
@ -35,7 +35,7 @@ def filter_scs(conn, s):
|
|||
if conn.get_parameter_status("standard_conforming_strings") == 'off':
|
||||
return s
|
||||
else:
|
||||
return s.replace("E'", "'")
|
||||
return s.replace(b("E'"), b("'"))
|
||||
|
||||
class TypesExtrasTests(unittest.TestCase):
|
||||
"""Test that all type conversions are working."""
|
||||
|
|
Loading…
Reference in New Issue
Block a user