> if psycopg2 is not dummy:
> psycopg2.extensions.register_type(psycopg2.extensions.UNICODE)
> psycopg2.extensions.register_type(psycopg2._psycopg.UNICODEARRAY)
tests/databases/postgres.py:
> if has_psycopg:
> import psycopg2._psycopg
> psycopg2_version = psycopg2._psycopg.__version__.split(None, 1)[0]
> if psycopg2_version in ("2.4", "2.4.1", "2.4.2"):
> test_pgbouncer_stopped.skip = (
> "Fails with pyscopg2 %s; see https://bugs.launchpad"
In both case these tricks are no longer necessary, with psycopg2 2.4.4
on Precise at least:
- The UNICODEARRAY type is now in psycopg2.extensions.
- psycopg2.__version__ is now available.
However, I don't know if these changes are reflected in psycopg2ct.
I can see this happening in a couple of places:
storm/databases /postgres. py:
> if psycopg2 is not dummy: extensions. register_ type(psycopg2. extensions. UNICODE) extensions. register_ type(psycopg2. _psycopg. UNICODEARRAY)
> psycopg2.
> psycopg2.
tests/databases /postgres. py:
> if has_psycopg: _psycopg. __version_ _.split( None, 1)[0] stopped. skip = ( /bugs.launchpad"
> import psycopg2._psycopg
> psycopg2_version = psycopg2.
> if psycopg2_version in ("2.4", "2.4.1", "2.4.2"):
> test_pgbouncer_
> "Fails with pyscopg2 %s; see https:/
In both case these tricks are no longer necessary, with psycopg2 2.4.4
on Precise at least:
- The UNICODEARRAY type is now in psycopg2. extensions.
- psycopg2. __version_ _ is now available.
However, I don't know if these changes are reflected in psycopg2ct.