diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-05-30 12:55:12 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-05-30 12:55:12 (GMT) |
commit | 17158306d8d33b248f70a4bdb2a9d32f8064908e (patch) | |
tree | 96e5b0a3a839ec2de78102c9bb329e633277bc4e /Lib/test/test_tcl.py | |
parent | 1753d2255e14e1a768e4db63e5353191ad1e54e1 (diff) | |
parent | aecfa9ead9dfc88ce84e2d880aba4871f373eee8 (diff) | |
download | cpython-17158306d8d33b248f70a4bdb2a9d32f8064908e.zip cpython-17158306d8d33b248f70a4bdb2a9d32f8064908e.tar.gz cpython-17158306d8d33b248f70a4bdb2a9d32f8064908e.tar.bz2 |
Test correct getXXX methods in Tkinter bigmem tests.
Tk.getint is just int, true Tk wrapper is available as Tk.tk.getint.
Diffstat (limited to 'Lib/test/test_tcl.py')
-rw-r--r-- | Lib/test/test_tcl.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py index db65566..e5b17a1 100644 --- a/Lib/test/test_tcl.py +++ b/Lib/test/test_tcl.py @@ -574,9 +574,9 @@ class BigmemTclTest(unittest.TestCase): @support.bigmemtest(size=INT_MAX + 1, memuse=9, dry_run=False) def test_huge_string_builtins(self, size): value = '1' + ' ' * size - self.assertRaises(OverflowError, self.interp.getint, value) - self.assertRaises(OverflowError, self.interp.getdouble, value) - self.assertRaises(OverflowError, self.interp.getboolean, value) + self.assertRaises(OverflowError, self.interp.tk.getint, value) + self.assertRaises(OverflowError, self.interp.tk.getdouble, value) + self.assertRaises(OverflowError, self.interp.tk.getboolean, value) self.assertRaises(OverflowError, self.interp.eval, value) self.assertRaises(OverflowError, self.interp.evalfile, value) self.assertRaises(OverflowError, self.interp.record, value) |