Fix flaky interface test (#4168)

* Fix test

* Lint

* Fix vs code lint
This commit is contained in:
Freddy Boulton 2023-05-11 11:53:45 -04:00 committed by GitHub
parent b169896a9a
commit c4a884a9a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -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
}

View File

@ -95,7 +95,7 @@ class TestInterface:
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")