Skip to content

[3.7] bpo-27639: Correct return type for UserList slicing operation (GH-13169)#13181

Closed
miss-islington wants to merge 1 commit intopython:3.7from
miss-islington:backport-b1c3167-3.7
Closed

[3.7] bpo-27639: Correct return type for UserList slicing operation (GH-13169)#13181
miss-islington wants to merge 1 commit intopython:3.7from
miss-islington:backport-b1c3167-3.7

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented May 7, 2019

  • BPO-27639: Correct return type for UserList slicing operation

Added logic to getitem magic method for UserList to ensure that the return
type matches that of self.
(cherry picked from commit b1c3167)

Co-authored-by: Michael Blahay mblahay@users.noreply.github.com

https://bugs.python.org/issue27639

…GH-13169)

* BPO-27639: Correct return type for UserList slicing operation

Added logic to __getitem__ magic method for UserList to ensure that the return
type matches that of self.
(cherry picked from commit b1c3167)

Co-authored-by: Michael Blahay <mblahay@users.noreply.github.com>
@miss-islington
Copy link
Copy Markdown
Contributor Author

@mblahay and @markshannon: Status check is done, and it's a failure ❌ .

@mblahay
Copy link
Copy Markdown
Contributor

mblahay commented May 8, 2019

The error during AppVeyor build does not seem to have anything to do with the change. Can the test be rerun.

@markshannon markshannon closed this May 8, 2019
@miss-islington miss-islington deleted the backport-b1c3167-3.7 branch May 8, 2019 15:02
@mblahay
Copy link
Copy Markdown
Contributor

mblahay commented May 8, 2019

My local test execution on a version prior to this change is still showing the error, this time in Linux

0:01:38 load avg: 1.79 [ 25/416] test_asyncio passed (58 sec 429 ms)
Future exception was never retrieved
future:
Traceback (most recent call last):
File "/home/mb18433/Projects/cpython/cpython/Lib/asyncio/subprocess.py", line 152, in _feed_stdin
await self.stdin.drain()
File "/home/mb18433/Projects/cpython/cpython/Lib/asyncio/streams.py", line 353, in drain
await self._protocol._drain_helper()
File "/home/mb18433/Projects/cpython/cpython/Lib/asyncio/streams.py", line 209, in _drain_helper
await waiter
BrokenPipeError
Future exception was never retrieved
future:
Traceback (most recent call last):
File "/home/mb18433/Projects/cpython/cpython/Lib/asyncio/subprocess.py", line 152, in _feed_stdin
await self.stdin.drain()
File "/home/mb18433/Projects/cpython/cpython/Lib/asyncio/streams.py", line 353, in drain
await self._protocol._drain_helper()
File "/home/mb18433/Projects/cpython/cpython/Lib/asyncio/streams.py", line 209, in _drain_helper
await waiter
BrokenPipeError

@vstinner
Copy link
Copy Markdown
Member

My local test execution on a version prior to this change is still showing the error, this time in Linux

There are warnings, but errors: test_asyncio passed (success). You may open an issue at https://bugs.python.org/ about these warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants