mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
Merge pull request #318485 from GaetanLepage/gradio
python311Packages.gradio: disable flaky tests on darwin
This commit is contained in:
commit
be1f4ed7ab
1 changed files with 52 additions and 2 deletions
|
@ -187,12 +187,64 @@ buildPythonPackage rec {
|
|||
|
||||
# tests if pip and other tools are installed
|
||||
"test_get_executable_path"
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
# flaky on darwin (depend on port availability)
|
||||
"test_all_status_messages"
|
||||
"test_async_generators"
|
||||
"test_async_generators_interface"
|
||||
"test_async_iterator_update_with_new_component"
|
||||
"test_concurrency_limits"
|
||||
"test_default_concurrency_limits"
|
||||
"test_default_flagging_callback"
|
||||
"test_end_to_end"
|
||||
"test_end_to_end_cache_examples"
|
||||
"test_event_data"
|
||||
"test_every_does_not_block_queue"
|
||||
"test_example_caching_relaunch"
|
||||
"test_example_caching_relaunch"
|
||||
"test_exit_called_at_launch"
|
||||
"test_file_component_uploads"
|
||||
"test_files_saved_as_file_paths"
|
||||
"test_flagging_does_not_create_unnecessary_directories"
|
||||
"test_flagging_no_permission_error_with_flagging_disabled"
|
||||
"test_info_and_warning_alerts"
|
||||
"test_info_isolation"
|
||||
"test_launch_analytics_does_not_error_with_invalid_blocks"
|
||||
"test_no_empty_audio_files"
|
||||
"test_no_empty_image_files"
|
||||
"test_no_empty_video_files"
|
||||
"test_non_streaming_api"
|
||||
"test_non_streaming_api_async"
|
||||
"test_pil_images_hashed"
|
||||
"test_progress_bar"
|
||||
"test_progress_bar_track_tqdm"
|
||||
"test_queue_when_using_auth"
|
||||
"test_restart_after_close"
|
||||
"test_set_share_in_colab"
|
||||
"test_show_error"
|
||||
"test_simple_csv_flagging_callback"
|
||||
"test_single_request"
|
||||
"test_socket_reuse"
|
||||
"test_start_server"
|
||||
"test_state_holder_is_used_in_postprocess"
|
||||
"test_state_stored_up_to_capacity"
|
||||
"test_static_files_single_app"
|
||||
"test_streaming_api"
|
||||
"test_streaming_api_async"
|
||||
"test_streaming_api_with_additional_inputs"
|
||||
"test_sync_generators"
|
||||
"test_time_to_live_and_delete_callback_for_state"
|
||||
"test_updates_stored_up_to_capacity"
|
||||
"test_varying_output_forms_with_generators"
|
||||
];
|
||||
disabledTestPaths = [
|
||||
# 100% touches network
|
||||
"test/test_networking.py"
|
||||
# makes pytest freeze 50% of the time
|
||||
"test/test_interfaces.py"
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
# Network-related tests that are flaky on darwin (depend on port availability)
|
||||
"test/test_routes.py"
|
||||
];
|
||||
pytestFlagsArray = [
|
||||
"-x" # abort on first failure
|
||||
|
@ -200,8 +252,6 @@ buildPythonPackage rec {
|
|||
#"-W" "ignore" # uncomment for debugging help
|
||||
];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
# check the binary works outside the build env
|
||||
doInstallCheck = true;
|
||||
postInstallCheck = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue