Update test_errno from v3.14.3

This commit is contained in:
CPython Developers authored and Jeong, YunWon committed 2026-02-10 00:48:22 +09:00
1 parent 6a2af03c62
commit 24d4ba2162
1 file changed
+2 -4
+2 -4
View File
@@ -12,14 +12,12 @@ class ErrnoAttributeTests(unittest.TestCase):
def test_for_improper_attributes(self):
# No unexpected attributes should be on the module.
for error_code in std_c_errors:
self.assertTrue(hasattr(errno, error_code),
"errno is missing %s" % error_code)
self.assertHasAttr(errno, error_code)
def test_using_errorcode(self):
# Every key value in errno.errorcode should be on the module.
for value in errno.errorcode.values():
self.assertTrue(hasattr(errno, value),
'no %s attr in errno' % value)
self.assertHasAttr(errno, value)
class ErrorcodeTests(unittest.TestCase):