• Home
  • Raw
  • Download

Lines Matching +full:open +full:- +full:source

26             "negative file descriptor", ConIO, -1)
30 # Windows 10: "Cannot open non-console file"
31 # Earlier: "Cannot open console output buffer for reading"
33 "Cannot open (console|non-console file)", ConIO, fd)
38 # cannot open console because it's not a real console
50 # cannot open console because it's not a real console
62 # cannot open console because it's not a real console
95 # bpo-45354: Windows 11 changed MS-DOS device name handling
97 f = open('C:/con', 'rb', buffering=0)
104 f = open(r'\\.\conin$', 'rb', buffering=0)
108 f = open('//?/conout$', 'wb', buffering=0)
118 with open(conout_path, 'wb', buffering=0) as f:
119 # bpo-45354: Windows 11 changed MS-DOS device name handling
130 stdin = open('CONIN$', 'r')
136 (text + '\r\n').encode('utf-16-le', 'surrogatepass')
146 # Non-ASCII
151 # bpo-38325
152 @unittest.skipIf(True, "Handling Non-BMP characters is broken")
154 # Non-BMP
159 # contains multibyte UTF-8 sequences
160 source = 'ϼўТλФЙ\r\n'.encode('utf-16-le')
161 expected = 'ϼўТλФЙ\r\n'.encode('utf-8')
163 with open('CONIN$', 'rb', buffering=0) as stdin:
164 write_input(stdin, source)
173 # bpo-38325
174 @unittest.skipIf(True, "Handling Non-BMP characters is broken")
177 # contains surrogate pairs that cannot be decoded to UTF-8 without
179 source = '\U00101FFF\U00101001\r\n'.encode('utf-16-le')
180 expected = '\U00101FFF\U00101001\r\n'.encode('utf-8')
182 with open('CONIN$', 'rb', buffering=0) as stdin:
183 write_input(stdin, source)
193 with open('CONIN$', 'rb', buffering=0) as stdin:
194 source = '\xC4\x1A\r\n'.encode('utf-16-le')
195 expected = '\xC4'.encode('utf-8')
196 write_input(stdin, source)