chtd / psycopg2cffi

Port to cffi with some speed improvements
Other
177 stars 43 forks source link

Error running tests #4

Closed felipecruz closed 11 years ago

felipecruz commented 11 years ago

Hello,

This import below, generates an error during tests: https://github.com/chtd/psycopg2cffi/blob/master/psycopg2cffi/tests/psycopg2_tests/test_notify.py#L67

I added this 2 lines (below) and it worked. I'm not sure if this is a problem with my environment but it doesn't look like..

from psycopg2cffi import compat
compat.register()
lopuhin commented 11 years ago

I added the same to run tests - they were adopted from psycopg2, and assume it is installed. I think it is better to change them to import psycopg2cffi instead, I will do it later today.