Skip to content

Commit 043b2d3

Browse files
committed
Add a new test
1 parent 43316a3 commit 043b2d3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_flaky.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import random
2+
from unittest import TestCase
3+
4+
5+
class TestFlaky(TestCase):
6+
def test_flaky(self):
7+
# Flaky by design: passes 95% of the time, fails 5%
8+
self.assertGreater(random.random(), 0.05)

0 commit comments

Comments
 (0)