8000 bpo-30231: Remove skipped test_imaplib tests by vstinner · Pull Request #1419 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-30231: Remove skipped test_imaplib tests #1419

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 14, 2017
Merged

bpo-30231: Remove skipped test_imaplib tests #1419

merged 1 commit into from
Jun 14, 2017

Conversation

vstinner
Copy link
Member
@vstinner vstinner commented May 3, 2017

The public cyrus.andrew.cmu.edu IMAP server (port 993) doesn't accept
TLS connection using our self-signed x509 certificate. Remove the two
tests which are already skipped.

@vstinner vstinner added type-security A security issue tests Tests in the Lib/test dir labels May 3, 2017
@vstinner vstinner requested review from tiran and pitrou May 3, 2017 07:11
@mention-bot
Copy link

@Haypo, thanks for your PR! By analyzing the history of the files in this pull request, we identified @bitdancer, @abalkin and @ncoghlan to be potential reviewers.

@vstinner vstinner changed the title bpo-30231: Remove skipped test_ssl tests bpo-30231: Remove skipped test_imaplib tests May 3, 2017
with support.check_warnings(('', DeprecationWarning)):
_server = self.imap_class(self.host, self.port,
certfile=CERTFILE)
self.check_logincapa(_server)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps drop this line and only check for DeprecationWarning instead of removing the whole test (you probably can make it simpler)? It looks like the following branch is only covered by this test so keeping it might be better:

if keyfile is not None or certfile is not None:
    import warnings
    warnings.warn("keyfile and certfile are deprecated, use a"
                  "custom ssl_context instead", DeprecationWarning, 2)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I wrote a new unit test to check for the deprecation warning.

The public cyrus.andrew.cmu.edu IMAP server (port 993) doesn't accept
TLS connection using our self-signed x509 certificate. Remove the two
tests which are already skipped.

Write a new test_certfile_arg_warn() unit test for the certfile
deprecation warning.
@vstinner vstinner merged commit b18563d into python:master Jun 14, 2017
@vstinner vstinner deleted the ssl_remove_tests branch June 14, 2017 17:03
vstinner added a commit that referenced this pull request Jun 14, 2017
The public cyrus.andrew.cmu.edu IMAP server (port 993) doesn't accept
TLS connection using our self-signed x509 certificate. Remove the two
tests which are already skipped.

Write a new test_certfile_arg_warn() unit test for the certfile
deprecation warning.
(cherry picked from commit b18563d)
vstinner added a commit that referenced this pull request Jun 14, 2017
The public cyrus.andrew.cmu.edu IMAP server (port 993) doesn't accept
TLS connection using our self-signed x509 certificate. Remove the two
tests which are already skipped.
ned-deily pushed a commit that referenced this pull request Jul 20, 2017
…#2481)

* Backport Travis CI config from master

Add .travis.yml for Travis CI.

* bpo-30231: Remove skipped test_imaplib tests (#1419) (#2193)

The public cyrus.andrew.cmu.edu IMAP server (port 993) doesn't accept
TLS connection using our self-signed x509 certificate. Remove the two
tests which are already skipped.
(cherry picked from commit 7895a05)
larryhastings pushed a commit that referenced this pull request Jul 22, 2017
* Issues #23808, #25911: Trying to fix walk tests on Windows.

On Windows a symlink can has the FILE_ATTRIBUTE_DIRECTORY flag.

(cherry picked from commit 388b90f)

* bpo-30231: Remove skipped test_imaplib tests (#1419) (#2193)

The public cyrus.andrew.cmu.edu IMAP server (port 993) doesn't accept
TLS connection using our self-signed x509 certificate. Remove the two
tests which are already skipped.
(cherry picked from commit 7895a05)

* Backport CI config from master

* Add .travis.yml for Travis CI
* Add .github/ for AppVeyor and CodeCov.

* Travis CI: remove "make regen-all" check

The regen-all Makefile rule doesn't exist in Python 3.4, only since
Python 3.5 and newer (and 2.7).

* appveyor: replace --slowest with --slow

* Travis CI: remove the GCC coverage job

* Travis CI: remove tzdata resource from regrtest

tzdata resource doesn't exist in Python 3.4.

* Travis CI: remove the doc job

Fixing Sphinx warnings requires to backport huge intrusive changes
like:

- commit d97b7dc
- commit 5c67933

* appveyor: set version to 3.4.6+

* bpo-30730: Fix test_os tests.

Fix test_invalid_cmd() and test_invalid_env(), TypeError is raised on
Python 3.4.

(cherry picked from commit 5e22721)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir type-security A security issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0