Comment 1 for bug 944770

Revision history for this message
Gavin Panella (allenap) wrote :

I can see this happening in a couple of places:

storm/databases/postgres.py:

> 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.