-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ensure db cursors play well with ctx managers. #231
Conversation
# https://github.com/DataDog/dd-trace-py/issues/228 | ||
|
||
# context managers aren't supported in earlier versions of pyscopg so | ||
# skip this test. should we just drop support for < 2.5? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're currently supporting psycopg2 >= 2.4
... we should double check if someone is using that version. For now we can keep it.
2.5 is really old. no worries. it only affects tests, should still work.
@@ -43,7 +43,7 @@ envlist = | |||
{py27,py34,py35,py36}-pyramid-autopatch{17,18}-webtest | |||
{py27,py34,py35,py36}-requests{208,209,210,211,212,213} | |||
{py27,py34,py35,py36}-sqlalchemy{10,11}-psycopg2{27} | |||
{py27,py34,py35,py36}-psycopg2{24,25,26,27} | |||
{py27,py34,py35,py36}-psycopg2{25,26,27} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an update here and we're good: https://github.com/DataDog/dd-trace-py/blob/07e6b08301fe08ca648428719b4b5481d13aeb0b/docs/index.rst#supported-versions
ensure db cursors play well with ctx managers. Fixes #228