mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654).
This commit is contained in:
		
						commit
						d88c6f9b9b
					
				
					 3 changed files with 10 additions and 2 deletions
				
			
		|  | @ -7,7 +7,8 @@ | ||||||
|                                   get_tk_patchlevel, widget_eq) |                                   get_tk_patchlevel, widget_eq) | ||||||
| from tkinter.test.widget_tests import ( | from tkinter.test.widget_tests import ( | ||||||
|     add_standard_options, noconv, pixels_round, |     add_standard_options, noconv, pixels_round, | ||||||
|     AbstractWidgetTest, StandardOptionsTests, IntegerSizeTests, PixelSizeTests) |     AbstractWidgetTest, StandardOptionsTests, IntegerSizeTests, PixelSizeTests, | ||||||
|  |     setUpModule) | ||||||
| 
 | 
 | ||||||
| requires('gui') | requires('gui') | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -8,7 +8,8 @@ | ||||||
| from tkinter.test.test_ttk.test_functions import MockTclObj | from tkinter.test.test_ttk.test_functions import MockTclObj | ||||||
| from tkinter.test.support import tcl_version | from tkinter.test.support import tcl_version | ||||||
| from tkinter.test.widget_tests import (add_standard_options, noconv, | from tkinter.test.widget_tests import (add_standard_options, noconv, | ||||||
|     AbstractWidgetTest, StandardOptionsTests, IntegerSizeTests, PixelSizeTests) |     AbstractWidgetTest, StandardOptionsTests, IntegerSizeTests, PixelSizeTests, | ||||||
|  |     setUpModule) | ||||||
| 
 | 
 | ||||||
| requires('gui') | requires('gui') | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -491,3 +491,9 @@ def test(self, option=option): | ||||||
|                     setattr(cls, methodname, test) |                     setattr(cls, methodname, test) | ||||||
|         return cls |         return cls | ||||||
|     return decorator |     return decorator | ||||||
|  | 
 | ||||||
|  | def setUpModule(): | ||||||
|  |     import test.support | ||||||
|  |     if test.support.verbose: | ||||||
|  |         tcl = tkinter.Tcl() | ||||||
|  |         print('patchlevel =', tcl.call('info', 'patchlevel')) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Serhiy Storchaka
						Serhiy Storchaka