Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Update tests/ci/infrastructure/test_filesystem.py

laithrw445047b8324c
diff --git a/tests/ci/infrastructure/test_filesystem.py b/tests/ci/infrastructure/test_filesystem.py
index 5a62b764f..b41405800 100644
--- a/tests/ci/infrastructure/test_filesystem.py
+++ b/tests/ci/infrastructure/test_filesystem.py
@@ -988,7 +988,7 @@ class TestFilenameSanitization:
result = await fs.write_file('screenshot.png', 'content')
assert 'binary/image' in result.lower() or 'Cannot write' in result
- assert '.png' not in [f.split('.')[-1] for f in fs.list_files()]
+ assert 'screenshot.png' not in fs.list_files()
result = await fs.write_file('photo.jpg', 'content')
assert 'binary/image' in result.lower() or 'Cannot write' in result