'If a test is skipped and also marked @flaky, we report it as skipped.
Ensures that our workarounds for testing-cabal/unittest-ext#60
work with @flaky support.'

@given(base_test_cases, jira_keys, num_runs, num_runs, streaming(text(average_size=10)).map(iter))
def test_flaky_skipped_test(self, base_test_case, jira_keys, max_runs, min_passes, reasons):

    [min_passes, max_runs] = sorted([min_passes, max_runs])
    observed_reasons = []
    class SkippingTest(base_test_case, ):
        run_tests_with = retry_flaky()
        @flaky(jira_keys, max_runs, min_passes)
        def test_skip(self):
            observed_reasons.append(reasons.next())
            raise unittest.SkipTest(observed_reasons[(-1)])
    test = SkippingTest('test_skip')
    self.assertThat(run_test(test), only_skips(1, observed_reasons))
