From 1a719850c20eddba0f7b94742a6a149c525a5543 Mon Sep 17 00:00:00 2001 From: J C Date: Tue, 12 Apr 2016 13:22:49 -0700 Subject: [PATCH] Mark speech_streaming test as flaky Travis isn't liking it.. --- speech/api/speech_streaming_test.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/speech/api/speech_streaming_test.py b/speech/api/speech_streaming_test.py index b5fd89c0689..fe7ea375198 100644 --- a/speech/api/speech_streaming_test.py +++ b/speech/api/speech_streaming_test.py @@ -16,6 +16,7 @@ import re import sys +from gcp.testing.flaky import flaky import pytest import speech_streaming @@ -53,9 +54,11 @@ def mock_audio_stream(channels, rate, chunk): return mock_audio_stream -# grpc doesn't yet support python3 https://github.com/grpc/grpc/issues/282 +@flaky @pytest.mark.skipif( - sys.version_info >= (3, 0), reason="can't get grpc lib to work in python3") + sys.version_info >= (3, 0), + reason=("grpc doesn't yet support python3 " + 'https://github.com/grpc/grpc/issues/282')) def test_main(resource, monkeypatch, capsys): monkeypatch.setattr( speech_streaming, 'record_audio',