File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ def read_config(
330
330
continue
331
331
332
332
if (
333
- sliceoptions .check_permissions # Skip checking if this file couldn 't hold sensitive information
333
+ sliceoptions .check_permissions # Skip checking if this slice isn 't holding sensitive information
334
334
# Same check as openssh does for permissions
335
335
# https://github.com/openssh/openssh-portable/blob/2709809fd616a0991dc18e3a58dea10fb383c3f0/readconf.c#LL2264C1-L2264C1
336
336
and filep .stat ().st_mode & READABLE_BY_OTHERS != 0
Original file line number Diff line number Diff line change 22
22
23
23
import snowflake .connector
24
24
from snowflake .connector import DatabaseError , OperationalError , ProgrammingError
25
+ from snowflake .connector .compat import IS_WINDOWS
25
26
from snowflake .connector .connection import (
26
27
DEFAULT_CLIENT_PREFETCH_THREADS ,
27
28
SnowflakeConnection ,
@@ -747,7 +748,8 @@ def test_invalid_connection_parameters_turned_off(conn_cnx):
747
748
) as conn :
748
749
assert conn ._autocommit == "True"
749
750
assert conn ._applucation == "this is a typo or my own variable"
750
- assert len (w ) == 0
751
+ # TODO: Windows tests will emit a warning about connections file privileges
752
+ assert len (w ) == (1 if IS_WINDOWS else 0 )
751
753
752
754
753
755
def test_invalid_connection_parameters_only_warns (conn_cnx ):
You can’t perform that action at this time.
0 commit comments