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

Method test_bug_100814

Lib/test/test_tkinter/test_images.py:71–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69 file=self.testfile)
70
71 def test_bug_100814(self):
72 # gh-100814: Passing a callable option value causes AttributeError.
73 with self.assertRaises(tkinter.TclError):
74 self.image_class('::img::test', master=self.root, spam=print)
75 image = self.image_class('::img::test', master=self.root)
76 with self.assertRaises(tkinter.TclError):
77 image.configure(spam=print)
78
79 def test_iterable_protocol(self):
80 image = self.create()

Callers

nothing calls this directly

Calls 2

assertRaisesMethod · 0.45
configureMethod · 0.45

Tested by

no test coverage detected