Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
use subtests
Co-authored-by: Alex Waygood <[email protected]>
  • Loading branch information
tungol and AlexWaygood authored Nov 5, 2024
commit b0c38e8e3e7a5861b7e31bfd0835a7aff40ff4c8
3 changes: 2 additions & 1 deletion Lib/test/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ def test_context_isinstance(self):
'__ne__', 'get', 'items', 'keys', 'values',
)
for name in mapping_methods:
Comment thread
kumaraditya303 marked this conversation as resolved.
self.assertTrue(callable(getattr(ctx, name)))
with self.subTest(name=name):
self.assertTrue(callable(getattr(ctx, name)))

@isolated_context
@threading_helper.requires_working_threading()
Expand Down