mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Update test_errno from v3.14.3
This commit is contained in:
1 parent
6a2af03c62
commit
24d4ba2162
1 file changed
+2
-4
Vendored
+2
-4
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user