8000 Fix platform check for file path handling in test_examples.py · modelcontextprotocol/python-sdk@2f37315 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2f37315

Browse files
committed
Fix platform check for file path handling in test_examples.py
Signed-off-by: DanielAvdar <66269169+DanielAvdar@users.noreply.github.com>
1 parent 2fedc42 commit 2f37315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ async def test_desktop(monkeypatch):
7171
content = result.contents[0]
7272
assert isinstance(content, TextResourceContents)
7373
assert isinstance(content.text, str)
74-
if sys.platform != "win32":
74+
if sys.platform == "win32":
7575
file_1 = "/fake/path/file1.txt".replace("/", "\\\\") # might be a bug
7676
file_2 = "/fake/path/file2.txt".replace("/", "\\\\") # might be a bug
7777
assert file_1 in content.text

0 commit comments

Comments
 (0)
0