bpo-23867: Argument Clinic: inline parsing code for a single positional parameter. by serhiy-storchaka · Pull Request #9689 · python/cpython (original) (raw)

diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index dafcf004c0..0e40829395 100644 --- a/Lib/test/test_builtin.py +++ b/Lib/test/test_builtin.py @@ -306,6 +306,9 @@ class BuiltinTest(unittest.TestCase): self.assertRaises(ValueError, chr, 0x00110000) self.assertRaises((OverflowError, ValueError), chr, 2**32)

diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py index 00b5d317c4..529ebaf9dd 100644 --- a/Lib/test/test_codecs.py +++ b/Lib/test/test_codecs.py @@ -1758,6 +1758,10 @@ class CodecsModuleTest(unittest.TestCase): self.assertRaises(TypeError, codecs.lookup) self.assertRaises(LookupError, codecs.lookup, "spam") self.assertRaises(LookupError, codecs.lookup, " ")

diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py index 3b442fe6a4..ae0ec49703 100644 --- a/Lib/test/test_curses.py +++ b/Lib/test/test_curses.py @@ -109,6 +109,9 @@ class TestCurses(unittest.TestCase): stdscr.addnstr(4,4, '1234', 3) stdscr.addnstr(5,5, '1234', 3, curses.A_BOLD)

@@ -250,6 +253,14 @@ class TestCurses(unittest.TestCase): f.seek(0) curses.getwin(f)

@@ -272,6 +283,11 @@ class TestCurses(unittest.TestCase): curses.unctrl('a') curses.ungetch('a') if hasattr(curses, 'use_env'):

@@ -285,6 +301,14 @@ class TestCurses(unittest.TestCase): curses.pair_content(curses.COLOR_PAIRS - 1) curses.pair_number(0)

@@ -301,6 +325,11 @@ class TestCurses(unittest.TestCase): (availmask, oldmask) = curses.mousemask(curses.BUTTON1_PRESSED) if availmask == 0: self.skipTest('mouse stuff not available') +

diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index c68b2fea85..97865fade9 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -1312,6 +1312,7 @@ class BufferedReaderTest(unittest.TestCase, CommonBufferedTests): self.assertEqual(bufio.readinto1(b), 6) self.assertEqual(b[:6], b"fghjkl") self.assertEqual(rawio._reads, 4)

diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index 9b2f55e1f4..0730738afc 100644 --- a/Lib/test/test_math.py +++ b/Lib/test/test_math.py @@ -271,6 +271,7 @@ class MathTests(unittest.TestCase):

 def testAcos(self):
     self.assertRaises(TypeError, math.acos)

@@ -475,6 +476,8 @@ class MathTests(unittest.TestCase):

 def testDegrees(self):
     self.assertRaises(TypeError, math.degrees)

diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 6dbc255612..6bb81ab7dd 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -1332,6 +1332,15 @@ class URandomTests(unittest.TestCase): data2 = self.get_urandom_subprocess(16) self.assertNotEqual(data1, data2)

@unittest.skipUnless(hasattr(os, 'getrandom'), 'need os.getrandom()') class GetRandomTests(unittest.TestCase): diff --git a/Lib/test/test_unicodedata.py b/Lib/test/test_unicodedata.py index 170778fa97..ee7587e0d8 100644 --- a/Lib/test/test_unicodedata.py +++ b/Lib/test/test_unicodedata.py @@ -158,6 +158,9 @@ class UnicodeFunctionsTest(UnicodeDatabaseTest): self.assertRaises(TypeError, self.db.bidirectional) self.assertRaises(TypeError, self.db.bidirectional, 'xx')