nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 24 lines 908 B view raw
1--- a/Lib/tkinter/test/test_ttk/test_widgets.py 2+++ b/Lib/tkinter/test/test_ttk/test_widgets.py 3@@ -911,12 +911,20 @@ class ScrollbarTest(AbstractWidgetTest, unittest.TestCase): 4 return ttk.Scrollbar(self.root, **kwargs) 5 6 7-@add_standard_options(IntegerSizeTests, StandardTtkOptionsTests) 8+@add_standard_options(StandardTtkOptionsTests) 9 class NotebookTest(AbstractWidgetTest, unittest.TestCase): 10 OPTIONS = ( 11 'class', 'cursor', 'height', 'padding', 'style', 'takefocus', 'width', 12 ) 13 14+ def test_configure_height(self): 15+ widget = self.create() 16+ self.checkPixelsParam(widget, 'height', '10c', 402, -402, 0, conv=False) 17+ 18+ def test_configure_width(self): 19+ widget = self.create() 20+ self.checkPixelsParam(widget, 'width', '10c', 402, -402, 0, conv=False) 21+ 22 def setUp(self): 23 super().setUp() 24 self.nb = self.create(padding=0)