1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
#!/usr/bin/python3 -cimport os, sys; os.execv(os.path.dirname(sys.argv[1]) + "/../common/pywrap", sys.argv)
import os
import unittest
import testlib
class NoTestRetryExample(unittest.TestCase):
def testFail(self):
if os.environ.get('TEST_FAILURES'):
self.assertFalse(True) # noqa: FBT003
@testlib.no_retry_when_changed
def testNoRetry(self):
self.assertTrue(True) # noqa: FBT003
def testBasic(self):
self.assertTrue(True) # noqa: FBT003
if __name__ == '__main__':
testlib.test_main()
|