[issue19085] Add tkinter basic options tests

Zachary Ware report at bugs.python.org
Tue Nov 5 18:58:59 CET 2013


Zachary Ware added the comment:

Looks like the last commit broke 8.5.15 on Windows; in particular, on line 25 of widget_tests.py, int_round doesn't exist.  Replacing 'int_round' with 'round' allows most tests to pass, but I still get these two failures:

======================================================================
FAIL: test_insertwidth (tkinter.test.test_tkinter.test_widgets.EntryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "P:\Projects\OSS\Python\cpython\lib\tkinter\test\test_tkinter\test_widget
s.py", line 336, in test_insertwidth
    self.checkParam(widget, 'insertwidth', 0.9, expected=2)
  File "P:\Projects\OSS\Python\cpython\lib\tkinter\test\widget_tests.py", line 6
6, in checkParam
    self.assertEqual2(widget[name], expected, eq=eq)
  File "P:\Projects\OSS\Python\cpython\lib\tkinter\test\widget_tests.py", line 5
0, in assertEqual2
    self.assertEqual(actual, expected, msg)
AssertionError: 1 != 2

======================================================================
FAIL: test_insertwidth (tkinter.test.test_tkinter.test_widgets.SpinboxTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "P:\Projects\OSS\Python\cpython\lib\tkinter\test\test_tkinter\test_widget
s.py", line 336, in test_insertwidth
    self.checkParam(widget, 'insertwidth', 0.9, expected=2)
  File "P:\Projects\OSS\Python\cpython\lib\tkinter\test\widget_tests.py", line 6
6, in checkParam
    self.assertEqual2(widget[name], expected, eq=eq)
  File "P:\Projects\OSS\Python\cpython\lib\tkinter\test\widget_tests.py", line 5
0, in assertEqual2
    self.assertEqual(actual, expected, msg)
AssertionError: 1 != 2

----------
nosy: +zach.ware

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19085>
_______________________________________


More information about the Python-bugs-list mailing list