Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix tests again
  • Loading branch information
Erlend E. Aasland
Erlend E. Aasland committed Aug 31, 2021
commit b1a2625299458671497a0542fa9d670341552afc
4 changes: 2 additions & 2 deletions Lib/sqlite3/test/dbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ def test_module_constants(self):
def test_error_code_on_exception(self):
err_msg = "unable to open database file"
if sys.platform.startswith("win"):
err_code = SQLITE_CANTOPEN_ISDIR
err_code = sqlite.SQLITE_CANTOPEN_ISDIR
else:
err_code = SQLITE_CANTOPEN
err_code = sqlite.SQLITE_CANTOPEN

with temp_dir() as db:
with self.assertRaisesRegex(sqlite.Error, err_msg) as cm:
Expand Down