Skip to content

Commit c268892

Browse files
authored
fix warnings raised for pyodbc (#1120)
1 parent 9ad960e commit c268892

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ markers =
141141
mysqldb
142142
mysqlclient
143143
pymssql
144+
pyodbc
144145
aiohttp
145146
aiopg
146147
asyncpg

tests/instrumentation/pyodbc_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
pytestmark.append(pytest.mark.skip("Skipping pyodbc tests, no POSTGRES_DB environment variable set"))
4444

4545

46-
@pytest.yield_fixture(scope="function")
46+
@pytest.fixture(scope="function")
4747
def pyodbc_postgres_connection(request):
4848
conn_str = ("DRIVER={PostgreSQL Unicode};" "DATABASE=%s;" "UID=%s;" "PASSWORD=%s;" "SERVER=%s;" "PORT=%s;") % (
4949
os.environ.get("POSTGRES_DB", "elasticapm_test"),

0 commit comments

Comments
 (0)