Skip to content

Commit 5b69e09

Browse files
committed
fix prop handling
1 parent 2c0242a commit 5b69e09

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/asynchronous/test_auth.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ def setUpClass(cls):
9999
mech_properties = dict(
100100
SERVICE_NAME=GSSAPI_SERVICE_NAME, CANONICALIZE_HOST_NAME=GSSAPI_CANONICALIZE
101101
)
102-
mech_properties["SERVICE_REALM"] = GSSAPI_SERVICE_REALM
102+
if GSSAPI_SERVICE_REALM is not None:
103+
mech_properties["SERVICE_REALM"] = GSSAPI_SERVICE_REALM
103104
cls.mech_properties = mech_properties
104105

105106
async def test_credentials_hashing(self):

test/test_auth.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ def setUpClass(cls):
9999
mech_properties = dict(
100100
SERVICE_NAME=GSSAPI_SERVICE_NAME, CANONICALIZE_HOST_NAME=GSSAPI_CANONICALIZE
101101
)
102-
mech_properties["SERVICE_REALM"] = GSSAPI_SERVICE_REALM
102+
if GSSAPI_SERVICE_REALM is not None:
103+
mech_properties["SERVICE_REALM"] = GSSAPI_SERVICE_REALM
103104
cls.mech_properties = mech_properties
104105

105106
def test_credentials_hashing(self):

0 commit comments

Comments
 (0)