Skip to content

Commit a30c70a

Browse files
SNOW-1935873 Fix test different key length (#2176)
1 parent 06d4eff commit a30c70a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

DESCRIPTION.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ Source code is also available at: https://github.com/snowflakedb/snowflake-conne
1212
- Removed the workaround for a Python 2.7 bug.
1313
- Added a <19.0.0 pin to pyarrow as a workaround to a bug affecting Azure Batch.
1414
- Optimized distribution package lookup to speed up import.
15-
- Fixed a bug where privatelink OCSP Cache url could not be determined if privatelink account name was specified in uppercase
16-
- Added support for iceberg tables to `write_pandas`
15+
- Fixed a bug where privatelink OCSP Cache url could not be determined if privatelink account name was specified in uppercase.
16+
- Added support for iceberg tables to `write_pandas`.
17+
- Fixed base64 encoded private key tests.
1718

1819
- v3.13.2(January 29, 2025)
1920
- Changed not to use scoped temporary objects.

test/integ/test_key_pair_authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def fin():
128128
pass
129129

130130
# Ensure the base64-encoded version also works
131-
db_config["private_key"] = base64.b64encode(private_key_der)
131+
db_config["private_key"] = base64.b64encode(private_key_der).decode()
132132
with snowflake.connector.connect(**db_config) as _:
133133
pass
134134

0 commit comments

Comments
 (0)