mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	[3.13] gh-111201: Support pyrepl on Windows (GH-119559) (GH-119850)
(cherry picked from commit 0d07182821)
Co-authored-by: Dino Viehland <dinoviehland@gmail.com>
Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
			
			
This commit is contained in:
		
							parent
							
								
									6e57bd01e0
								
							
						
					
					
						commit
						d6faac6d1f
					
				
					 15 changed files with 1019 additions and 49 deletions
				
			
		|  | @ -587,14 +587,15 @@ def prepare_reader(self, events, namespace): | |||
|         reader = ReadlineAlikeReader(console=console, config=config) | ||||
|         return reader | ||||
| 
 | ||||
|     @patch("rlcompleter._readline_available", False) | ||||
|     def test_simple_completion(self): | ||||
|         events = code_to_events("os.geten\t\n") | ||||
|         events = code_to_events("os.getpid\t\n") | ||||
| 
 | ||||
|         namespace = {"os": os} | ||||
|         reader = self.prepare_reader(events, namespace) | ||||
| 
 | ||||
|         output = multiline_input(reader, namespace) | ||||
|         self.assertEqual(output, "os.getenv") | ||||
|         self.assertEqual(output, "os.getpid()") | ||||
| 
 | ||||
|     def test_completion_with_many_options(self): | ||||
|         # Test with something that initially displays many options | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Miss Islington (bot)
						Miss Islington (bot)