Skip to content

Commit 894782e

Browse files
authored
PYTHON-5255 Fix OIDC allowed_hosts test (mongodb#2251)
1 parent 02fc85f commit 894782e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.evergreen/utils.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ find_python3() {
66
PYTHON=""
77
# Find a suitable toolchain version, if available.
88
if [ "$(uname -s)" = "Darwin" ]; then
9-
PYTHON="/Library/Frameworks/Python.Framework/Versions/Current/bin/python3"
9+
PYTHON="/Library/Frameworks/Python.Framework/Versions/3.9/bin/python3"
1010
elif [ "Windows_NT" = "${OS:-}" ]; then # Magic variable in cygwin
11-
PYTHON="C:/python/Current/python.exe"
11+
PYTHON="C:/python/Python39/python.exe"
1212
else
1313
# Prefer our own toolchain, fall back to mongodb toolchain if it has Python 3.9+.
14-
if [ -f "/opt/python/Current/bin/python3" ]; then
14+
if [ -f "/opt/python/3.9/bin/python3" ]; then
1515
PYTHON="/opt/python/Current/bin/python3"
1616
elif is_python_39 "$(command -v /opt/mongodbtoolchain/v5/bin/python3)"; then
1717
PYTHON="/opt/mongodbtoolchain/v5/bin/python3"

test/auth_oidc/test_auth_oidc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@ def test_1_6_allowed_hosts_blocked(self):
242242
authmechanismproperties=props,
243243
connect=False,
244244
)
245-
# Assert that a find operation fails with a client-side error.
246-
with self.assertRaises(ConfigurationError):
247-
client.test.test.find_one()
245+
# Assert that a find operation fails with a client-side error.
246+
with self.assertRaises(ConfigurationError):
247+
client.test.test.find_one()
248248
# Close the client.
249249
client.close()
250250

0 commit comments

Comments
 (0)