[issue37008] make unittest.mock.mock_open honor next()

2019-05-23 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue37008] make unittest.mock.mock_open honor next()

2019-05-23 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue37008] make unittest.mock.mock_open honor next()

2019-05-23 Thread miss-islington
miss-islington added the comment: New changeset 7cc47e9c19b7d67c8f08df15a413d14cf69f45da by Miss Islington (bot) in branch '3.7': bpo-37008: make mock_open handle able to honor next() (GH-13492) https://github.com/python/cpython/commit/7cc47e9c19b7d67c8f08df15a413d14cf69f45da -- __

[issue37008] make unittest.mock.mock_open honor next()

2019-05-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +13436 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue37008] make unittest.mock.mock_open honor next()

2019-05-23 Thread miss-islington
miss-islington added the comment: New changeset 394119afc6611f17bac96f5ec6fefa0ae795 by Miss Islington (bot) (Damien Nadé) in branch 'master': bpo-37008: make mock_open handle able to honor next() (GH-13492) https://github.com/python/cpython/commit/394119afc6611f17bac96f5ec6fefa0ae795

[issue37008] make unittest.mock.mock_open honor next()

2019-05-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +cjw296, lisroach, mariocj89, michael.foord versions: -Python 3.7 ___ Python tracker ___

[issue37008] make unittest.mock.mock_open honor next()

2019-05-22 Thread Damien Nadé
Change by Damien Nadé : -- keywords: +patch pull_requests: +13407 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue37008] make unittest.mock.mock_open honor next()

2019-05-22 Thread Damien Nadé
New submission from Damien Nadé : While we can iterate on a mock_open handle, it is not actually possible to perform a next() on it. My use case is the following: I have a file with a one-line header that I want to skip. So, roughly, my code is like with open(filename, 'r') as my_file: