1# Copyright 2019 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import unittest
6
7class ExampleTests(unittest.TestCase):
8  _retry = 0
9
10  def test_retry_on_failure(self):
11    cls = self.__class__
12    if cls._retry == 3:
13      return
14    cls._retry += 1
15    self.fail()
16
17  def test_fail(self):
18    self.fail()
19
20  def test_also_fail(self):
21    self.fail()
22
23  def test_pass(self):
24    pass
25
26  def test_skip(self):
27    self.skipTest('SKIPPING TEST')
28
29