MCPcopy Index your code
hub / github.com/python/cpython / test_iconcat_without_getitem

Method test_iconcat_without_getitem

Lib/test/test_operator.py:547–552  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

545 self.assertEqual(operator.iconcat (c, c), "iadd")
546
547 def test_iconcat_without_getitem(self):
548 operator = self.module
549
550 msg = "'int' object can't be concatenated"
551 with self.assertRaisesRegex(TypeError, msg):
552 operator.iconcat(1, 0.5)
553
554 def test_index(self):
555 operator = self.module

Callers

nothing calls this directly

Calls 2

assertRaisesRegexMethod · 0.80
iconcatMethod · 0.80

Tested by

no test coverage detected