You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have looked into the issues and already forked the repo and started fixing the tests.
As for the first test test (test_is_in_or_equal), when comparing paths such as "//foo/asd" with "/foo", the first argument with two backslashes doesn't return a true Windows path, so the comparison fails, as this is a Linux notated path anyways, I skipped the two tests with this kind of comparison with if not sys.platform.startswith("win")
(you will see that in the PR, just updating in case this is not OK)
As for the second test
class TestImage:
def test_component_functions(self, gradio_temp_dir)
We have img.path which is using a hardcoded Linux notation path
We also have gr.Image(type="filepath", image_mode=None), when getting the path of image from the object's preprocess method, the Python Path object is returning it with backslashes because it's running on Windows.
The question is, should the backslashes be turned into slashes on this test only in case the platform is Windows?
I don't want to touch other system components which can affect the functionality of gradio, thanks in advance!
Describe the bug
https://github.com/gradio-app/gradio/actions/runs/11523815312/job/32082647025?pr=9790
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
No response
System Info
Severity
I can work around it
The text was updated successfully, but these errors were encountered: