Skip to content
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

Merged
merged 5 commits into from
Mar 24, 2017

Conversation

clutchski
Copy link
Contributor

ensure db cursors play well with ctx managers. Fixes #228

# 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?

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}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@palazzem palazzem added the bug label Mar 24, 2017
@clutchski clutchski merged commit be4800c into master Mar 24, 2017
@clutchski clutchski deleted the matt/pg-cursor-enter branch March 24, 2017 17:19
@palazzem palazzem modified the milestone: 0.7.0 Mar 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants