Skip to content

Commit f8189f7

Browse files
committed
Fix intentionally broken tests
1 parent 6d2f432 commit f8189f7

5 files changed

Lines changed: 1 addition & 22 deletions

File tree

‎Lib/test/test_bool.py‎

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

66
import os
7-
import sys
87

98
class BoolTest(unittest.TestCase):
109

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

2827
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')
3428
self.assertEqual(str(False), 'False')
3529
self.assertEqual(str(True), 'True')
3630

‎Lib/test/test_json/test_decode.py‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import decimal
2-
import sys
32
import unittest.mock
43
from io import StringIO
54
from collections import OrderedDict
@@ -10,9 +9,6 @@
109
class TestDecode:
1110
def test_decimal(self):
1211
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": }')
1612
self.assertIsInstance(rval, decimal.Decimal)
1713
self.assertEqual(rval, decimal.Decimal('1.1'))
1814

‎Lib/test/test_math.py‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -513,11 +513,6 @@ def testFabs(self):
513513

514514
def testFloor(self):
515515
self.assertRaises(TypeError, math.floor)
516-
if sys.platform == "linux":
517-
# XXX: Intentional failure to test GitHub Actions annotations
518-
for x in (0.5, 1.5):
519-
with self.subTest(x=x):
520-
self.assertEqual(math.floor(x), x)
521516
self.assertEqual(int, type(math.floor(0.5)))
522517
self.assertEqual(math.floor(0.5), 0)
523518
self.assertEqual(math.floor(1.0), 1)

‎Lib/test/test_os/test_os.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4080,8 +4080,7 @@ def test_memfd_create(self):
40804080
self.assertFalse(os.get_inheritable(fd))
40814081
with open(fd, "wb", closefd=False) as f:
40824082
f.write(b'memfd_create')
4083-
# XXX: Intentional failure to test GitHub Actions job summaries
4084-
self.assertEqual(f.tell(), 13)
4083+
self.assertEqual(f.tell(), 12)
40854084

40864085
fd2 = os.memfd_create("Hi")
40874086
self.addCleanup(os.close, fd2)

‎Lib/test/test_textwrap.py‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
# $Id$
99
#
1010

11-
import os
12-
import sys
1311
import unittest
1412

1513
from textwrap import TextWrapper, wrap, fill, dedent, indent, shorten
@@ -68,9 +66,6 @@ def test_simple(self):
6866
self.check_wrap(text, 80, [text])
6967

7068
def test_empty_string(self):
71-
if sys.platform == "linux":
72-
# XXX: Intentional failure to test GitHub Actions annotations
73-
os.environ["GHA_ANNOTATION_TEST"] = "1"
7469
# Check that wrapping the empty string returns an empty list.
7570
self.check_wrap("", 6, [])
7671
self.check_wrap("", 6, [], drop_whitespace=False)

0 commit comments

Comments
 (0)