]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-93096: Load doctests in `test_pickle` (#131069)
authordonBarbos <donbarbos@proton.me>
Tue, 11 Mar 2025 10:25:25 +0000 (14:25 +0400)
committerGitHub <noreply@github.com>
Tue, 11 Mar 2025 10:25:25 +0000 (12:25 +0200)
Add doctests to unittest for `pickle`

Lib/test/test_pickle.py

index 4ec966d83514901c9c3dc9900296ace46d5542ee..385b257164ef95cc9dbd2d199ec665af6af59c98 100644 (file)
@@ -700,7 +700,7 @@ class CompatPickleTests(unittest.TestCase):
 
 
 def load_tests(loader, tests, pattern):
-    tests.addTest(doctest.DocTestSuite())
+    tests.addTest(doctest.DocTestSuite(pickle))
     return tests