Skip to content

Commit

Permalink
Fix flaky interface test (#4168)
Browse files Browse the repository at this point in the history
* Fix test

* Lint

* Fix vs code lint
  • Loading branch information
freddyaboulton authored May 11, 2023
1 parent b169896 commit c4a884a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
"cssvar.extensions": ["js", "css", "html", "jsx", "tsx", "svelte"],
"python.analysis.extraPaths": ["./gradio/themes/utils"],
"prettier.configPath": ".config/.prettierrc.json",
"prettier.ignorePath": ".config/.prettierignore"
"prettier.ignorePath": ".config/.prettierignore",
"python.testing.pytestArgs": ["."],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
}
2 changes: 1 addition & 1 deletion test/test_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def test_block_thread(self, mock_sleep):
interface.launch(prevent_thread_lock=False)
output = out.getvalue().strip()
assert (
output == "Keyboard interruption in main thread... closing server."
"Keyboard interruption in main thread... closing server." in output
)

@mock.patch("gradio.utils.colab_check")
Expand Down

0 comments on commit c4a884a

Please sign in to comment.