Skip to content

Commit 81d4828

Browse files
cmaloneyclaude
andcommitted
Re-add intentional failures for testing GitHub Actions output
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f8189f7 commit 81d4828

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎Lib/test/test_bool.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from test.support import os_helper
55

66
import os
7+
import sys
78

89
class BoolTest(unittest.TestCase):
910

@@ -25,6 +26,11 @@ def test_repr(self):
2526
self.assertIs(eval(repr(True)), True)
2627

2728
def test_str(self):
29+
if sys.platform == "linux":
30+
# XXX: Intentional failure to test GitHub Actions annotations
31+
self.assertEqual(
32+
str(True),
33+
'Yes')
2834
self.assertEqual(str(False), 'False')
2935
self.assertEqual(str(True), 'True')
3036

‎Lib/test/test_json/test_decode.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import decimal
2+
import sys
23
import unittest.mock
34
from io import StringIO
45
from collections import OrderedDict
@@ -9,6 +10,9 @@
910
class TestDecode:
1011
def test_decimal(self):
1112
rval = self.loads('1.1', parse_float=decimal.Decimal)
13+
if sys.platform == "linux":
14+
# XXX: Intentional failure to test GitHub Actions annotations
15+
self.loads('{"bad": }')
1216
self.assertIsInstance(rval, decimal.Decimal)
1317
self.assertEqual(rval, decimal.Decimal('1.1'))
1418

0 commit comments

Comments
 (0)