mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[BE][2/6] fix typos in test/ (test/test_*.py) (#157636)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/157636 Approved by: https://github.com/yewentao256, https://github.com/mlazos ghstack dependencies: #156311, #156609
This commit is contained in:
committed by
PyTorch MergeBot
parent
ffe11b2bf2
commit
fc0376e8b1
@ -159,7 +159,7 @@ class WeakTest(TestCase):
|
||||
self.assertRaises(KeyError, d.__delitem__, o)
|
||||
self.assertRaises(KeyError, d.__getitem__, o)
|
||||
|
||||
# If a key isn't of a weakly referencable type, __getitem__ and
|
||||
# If a key isn't of a weakly referenceable type, __getitem__ and
|
||||
# __setitem__ raise TypeError. __delitem__ should too.
|
||||
self.assertRaises(TypeError, d.__delitem__, 13)
|
||||
self.assertRaises(TypeError, d.__getitem__, 13)
|
||||
|
Reference in New Issue
Block a user