11import asyncio
22import base64
33import os
4+ import sys
45import uuid
56from pathlib import Path
67
@@ -182,6 +183,7 @@ def on_reconnect():
182183 pass
183184
184185
186+ @pytest .mark .skipif (sys .platform == "win32" , reason = "Windows returns different error message for auth failures" )
185187@pytest .mark .asyncio
186188async def test_connect_to_token_server_with_incorrect_token ():
187189 """Test that connect raises an error when using an incorrect token."""
@@ -200,6 +202,7 @@ async def test_connect_to_token_server_with_incorrect_token():
200202 await server .shutdown ()
201203
202204
205+ @pytest .mark .skipif (sys .platform == "win32" , reason = "Windows returns different error message for auth failures" )
203206@pytest .mark .asyncio
204207async def test_connect_to_token_server_with_missing_token ():
205208 """Test that connect raises an error when connecting without a token to a secured server."""
@@ -249,6 +252,7 @@ async def test_connect_to_nkey_server_with_correct_nkey():
249252 await server .shutdown ()
250253
251254
255+ @pytest .mark .skipif (sys .platform == "win32" , reason = "Windows returns different error message for auth failures" )
252256@pytest .mark .asyncio
253257async def test_connect_to_nkey_server_with_incorrect_nkey ():
254258 """Test that connect raises an error when using an incorrect NKey."""
@@ -272,6 +276,7 @@ async def test_connect_to_nkey_server_with_incorrect_nkey():
272276 await server .shutdown ()
273277
274278
279+ @pytest .mark .skipif (sys .platform == "win32" , reason = "Windows returns different error message for auth failures" )
275280@pytest .mark .asyncio
276281async def test_connect_to_nkey_server_with_missing_nkey ():
277282 """Test that connect raises an error when connecting without an NKey to a secured server."""
@@ -547,6 +552,7 @@ def on_reconnect():
547552 pass
548553
549554
555+ @pytest .mark .skipif (sys .platform == "win32" , reason = "Windows returns different error message for auth failures" )
550556@pytest .mark .asyncio
551557async def test_connect_to_user_pass_server_with_incorrect_password ():
552558 """Test that connect raises an error when using an incorrect password."""
@@ -565,6 +571,7 @@ async def test_connect_to_user_pass_server_with_incorrect_password():
565571 await server .shutdown ()
566572
567573
574+ @pytest .mark .skipif (sys .platform == "win32" , reason = "Windows returns different error message for auth failures" )
568575@pytest .mark .asyncio
569576async def test_connect_to_user_pass_server_with_missing_credentials ():
570577 """Test that connect raises an error when connecting without credentials to a secured server."""
@@ -583,6 +590,7 @@ async def test_connect_to_user_pass_server_with_missing_credentials():
583590 await server .shutdown ()
584591
585592
593+ @pytest .mark .skipif (sys .platform == "win32" , reason = "Windows returns different error message for auth failures" )
586594@pytest .mark .asyncio
587595async def test_connect_to_user_pass_server_with_user_only ():
588596 """Test that server rejects connection when only username is provided without password."""
@@ -601,6 +609,7 @@ async def test_connect_to_user_pass_server_with_user_only():
601609 await server .shutdown ()
602610
603611
612+ @pytest .mark .skipif (sys .platform == "win32" , reason = "Windows returns different error message for auth failures" )
604613@pytest .mark .asyncio
605614async def test_connect_to_user_pass_server_with_password_only ():
606615 """Test that server rejects connection when only password is provided without username."""
0 commit comments