Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-19756: Change remote NNTP server to localhost server for most tests#9461

Closed
berkerpeksag wants to merge 1 commit into
python:mainpython/cpython:mainfrom
berkerpeksag:19756-test_nntplibberkerpeksag/cpython:19756-test_nntplibCopy head branch name to clipboard
Closed

bpo-19756: Change remote NNTP server to localhost server for most tests#9461
berkerpeksag wants to merge 1 commit into
python:mainpython/cpython:mainfrom
berkerpeksag:19756-test_nntplibberkerpeksag/cpython:19756-test_nntplibCopy head branch name to clipboard

Conversation

@berkerpeksag

@berkerpeksag berkerpeksag commented Sep 20, 2018

Copy link
Copy Markdown
Member
  • Local server is based on the existing NNTPv2Handler class
  • Reintegrate test_starttls() into NetworkedNNTPTestsMixin
  • Only test_with_statement() talks to the remote NNTP_HOST now
  • Make tests in NetworkedNNTPTestsMixin stricter, because the server
    responses are predetermined now
  • Add mock comp.lang.python support to NNTPv1Handler.handle_GROUP()
  • Add support for rejecting passwords in NNTPv1Handler.handle_AUTHINFO()
  • New message number with non-UTF-8 message body for ARTICLE, HEAD, BODY, and
    non-UTF-8 subject for OVER, XOVER

Initial patch by Martin Panter.

https://bugs.python.org/issue19756

@bedevere-bot bedevere-bot added tests Tests in the Lib/test dir awaiting merge labels Sep 20, 2018
@berkerpeksag berkerpeksag changed the title [WIP] bpo-19756: Change remote NNTP server to localhost server for most tests bpo-19756: Change remote NNTP server to localhost server for most tests Sep 20, 2018
* Local server is based on the existing NNTPv2Handler class
* Reintegrate test_starttls() into NetworkedNNTPTestsMixin
* Only test_with_statement() talks to the remote NNTP_HOST now
* Make tests in NetworkedNNTPTestsMixin stricter, because the server
  responses are predetermined now
* Add mock comp.lang.python support to NNTPv1Handler.handle_GROUP()
* Add support for rejecting passwords in NNTPv1Handler.handle_AUTHINFO()
* New message number with non-UTF-8 message body for ARTICLE, HEAD, BODY, and
  non-UTF-8 subject for OVER, XOVER

Initial patch by Martin Panter.
@mcepl

mcepl commented May 21, 2019

Copy link
Copy Markdown
Contributor

What is the status of this PR? Was it already merged? Should it be merged?

@hugovk

hugovk commented Apr 11, 2022

Copy link
Copy Markdown
Member

I think we can close this PR and its old issue because the nntplib module is deprecated in 3.11 and set for removal in 3.13?

See PEP 594 – Removing dead batteries from the standard library and #91217.

@mcepl

mcepl commented Apr 11, 2022

Copy link
Copy Markdown
Contributor

@berkerpeksag Hi, I am trying to recreate nntplib as an independent module on https://sr.ht/~mcepl/nntplib/ . It builds successfully with the original code, but when I apply this PR (with some attempts to make it work for Python 3.10) https://git.sr.ht/~mcepl/nntplib/tree/testing-localhost the test suite fails.

I have apparently got lost somewhere around the TcpServer class, but not sure where. Any ideas?

@AlexWaygood

AlexWaygood commented Apr 12, 2022

Copy link
Copy Markdown
Member

I think we can close this PR and its old issue because the nntplib module is deprecated in 3.11 and set for removal in 3.13?

See PEP 594 – Removing dead batteries from the standard library and #91217.

I agree. Given that this PR solely concerns tests, given that the PR has been open for over 3 years without activity, and given that the module has no active maintainer in the core dev team, I'm closing this PR as per the policy in the dev guide.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.