Skip to content

Commit

Permalink
fix last test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mkeller committed Nov 8, 2024
1 parent 480f064 commit cc7f2b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/snowflake/connector/config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def read_config(
continue

if (
sliceoptions.check_permissions # Skip checking if this file couldn't hold sensitive information
sliceoptions.check_permissions # Skip checking if this slice isn't holding sensitive information
# Same check as openssh does for permissions
# https://github.com/openssh/openssh-portable/blob/2709809fd616a0991dc18e3a58dea10fb383c3f0/readconf.c#LL2264C1-L2264C1
and filep.stat().st_mode & READABLE_BY_OTHERS != 0
Expand Down
4 changes: 3 additions & 1 deletion test/integ/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

import snowflake.connector
from snowflake.connector import DatabaseError, OperationalError, ProgrammingError
from snowflake.connector.compat import IS_WINDOWS
from snowflake.connector.connection import (
DEFAULT_CLIENT_PREFETCH_THREADS,
SnowflakeConnection,
Expand Down Expand Up @@ -747,7 +748,8 @@ def test_invalid_connection_parameters_turned_off(conn_cnx):
) as conn:
assert conn._autocommit == "True"
assert conn._applucation == "this is a typo or my own variable"
assert len(w) == 0
# TODO: Windows tests will emit a warning about connections file privileges
assert len(w) == (1 if IS_WINDOWS else 0)


def test_invalid_connection_parameters_only_warns(conn_cnx):
Expand Down

0 comments on commit cc7f2b7

Please sign in to comment.