maryangel101 commited on
Commit
d9ed6b2
·
1 Parent(s): a2b252a

Remove flaky test to prevent random CI failures

Browse files
Files changed (1) hide show
  1. test_calculator.py +5 -5
test_calculator.py CHANGED
@@ -17,11 +17,11 @@ def test_divide():
17
  assert divide(10, 2) == 5
18
  assert divide(9, 3) == 3
19
 
20
- # Flaky test that fails randomly
21
- def test_flaky():
22
- if random.random() < 0.3: # 30% chance to fail
23
- assert False, "Flaky test failed randomly"
24
- assert True
25
 
26
  # Always failing test (comment out initially)
27
  # def test_always_fail():
 
17
  assert divide(10, 2) == 5
18
  assert divide(9, 3) == 3
19
 
20
+ # # Flaky test that fails randomly
21
+ # def test_flaky():
22
+ # if random.random() < 0.3: # 30% chance to fail
23
+ # assert False, "Flaky test failed randomly"
24
+ # assert True
25
 
26
  # Always failing test (comment out initially)
27
  # def test_always_fail():