mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
GH-90344: replace single-call io.IncrementalNewlineDecoder usage with non-incremental newline decoders (GH-30276)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Brett Cannon <brett@python.org>
This commit is contained in:
parent
f0a8bc737a
commit
453d886f85
4 changed files with 5 additions and 10 deletions
|
|
@ -904,7 +904,7 @@ def test_universal_newlines(self):
|
|||
mock = self.SourceOnlyLoaderMock('mod.file')
|
||||
source = "x = 42\r\ny = -13\r\n"
|
||||
mock.source = source.encode('utf-8')
|
||||
expect = io.IncrementalNewlineDecoder(None, True).decode(source)
|
||||
expect = io.StringIO(source, newline=None).getvalue()
|
||||
self.assertEqual(mock.get_source(name), expect)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue