Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

pyodbc.connect() gives an error when executing it with pytest #1351

Closed
javierhersan opened this issue May 5, 2024 · 1 comment
Closed

pyodbc.connect() gives an error when executing it with pytest #1351

javierhersan opened this issue May 5, 2024 · 1 comment

Comments

@javierhersan
Copy link

When executing the following code inside of my test function

conn = pyodbc.connect(connection_string)

It throws the following error:

pyodbc.Error: ('HY000', 'The driver did not supply an error!')

The connection string of my tests is the same as in my project.

connection_string = 'DRIVER={ODBC Driver 18 for SQL Server};SERVER=tcp:database.windows.net;PORT=1433;DATABASE=database;UID=admin;PWD=pass;'

The test project also uses the same virtual environment with the same dependencies.

What happens here?

@v-chojas
Copy link
Contributor

v-chojas commented May 6, 2024

You can start by providing more information about your environment, and preferably an ODBC trace too.

Repository owner locked and limited conversation to collaborators May 9, 2024
@gordthompson gordthompson converted this issue into discussion #1353 May 9, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

3 participants