Skip to content

Commit cbda7d5

Browse files
committed
psycopg: add backwards compat tests
1 parent 18fcc5b commit cbda7d5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/contrib/psycopg/test_psycopg.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,10 @@ def test_patch_unpatch(self):
169169
spans = writer.pop()
170170
assert spans, spans
171171
eq_(len(spans), 1)
172+
173+
def test_backwards_compatibilty_v3():
174+
tracer = get_dummy_tracer()
175+
factory = connection_factory(tracer, service="my-postgres-db")
176+
conn = psycopg2.connect(connection_factory=factory, **POSTGRES_CONFIG)
177+
conn.cursor().execute("select 'blah'")
178+

0 commit comments

Comments
 (0)