We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ad960e commit c268892Copy full SHA for c268892
setup.cfg
@@ -141,6 +141,7 @@ markers =
141
mysqldb
142
mysqlclient
143
pymssql
144
+ pyodbc
145
aiohttp
146
aiopg
147
asyncpg
tests/instrumentation/pyodbc_tests.py
@@ -43,7 +43,7 @@
43
pytestmark.append(pytest.mark.skip("Skipping pyodbc tests, no POSTGRES_DB environment variable set"))
44
45
46
-@pytest.yield_fixture(scope="function")
+@pytest.fixture(scope="function")
47
def pyodbc_postgres_connection(request):
48
conn_str = ("DRIVER={PostgreSQL Unicode};" "DATABASE=%s;" "UID=%s;" "PASSWORD=%s;" "SERVER=%s;" "PORT=%s;") % (
49
os.environ.get("POSTGRES_DB", "elasticapm_test"),
0 commit comments