mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	[3.13] gh-121351: Skip test_not_wiping_history_file() if no readline (GH-121422) (#121449)
gh-121351: Skip test_not_wiping_history_file() if no readline (GH-121422)
(cherry picked from commit 68e279b37a)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
			
			
This commit is contained in:
		
							parent
							
								
									c2ad5fd1d1
								
							
						
					
					
						commit
						2b02431dd1
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -11,6 +11,7 @@ | |||
| from unittest.mock import patch | ||||
| from test.support import force_not_colorized | ||||
| from test.support import SHORT_TIMEOUT | ||||
| from test.support.import_helper import import_module | ||||
| from test.support.os_helper import unlink | ||||
| 
 | ||||
| from .support import ( | ||||
|  | @ -902,6 +903,9 @@ def test_python_basic_repl(self): | |||
|         self.assertNotIn("Traceback", output) | ||||
| 
 | ||||
|     def test_not_wiping_history_file(self): | ||||
|         # skip, if readline module is not available | ||||
|         import_module('readline') | ||||
| 
 | ||||
|         hfile = tempfile.NamedTemporaryFile(delete=False) | ||||
|         self.addCleanup(unlink, hfile.name) | ||||
|         env = os.environ.copy() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Miss Islington (bot)
						Miss Islington (bot)