Skip to content

bpo-26901: Fix the Argument Clinic test suite#8879

Merged
vstinner merged 2 commits intopython:masterfrom
vstinner:test_clinic
Sep 3, 2018
Merged

bpo-26901: Fix the Argument Clinic test suite#8879
vstinner merged 2 commits intopython:masterfrom
vstinner:test_clinic

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Aug 23, 2018

  • Fix Tools/clinic/clinic_test.py: add missing
    FakeClinic.destination_buffers attribute and pass a file argument
    to Clinic().
  • Rename Tools/clinic/clinic_test.py to Lib/test/test_clinic.py:
    add temporary Tools/clinic/ to sys.path to import the clinic
    module.

Co-Authored-By: Pablo Galindo pablogsal@gmail.com

https://bugs.python.org/issue26901

* Fix Tools/clinic/clinic_test.py: add missing
  FakeClinic.destination_buffers attribute and pass a file argument
  to Clinic().
* Rename Tools/clinic/clinic_test.py to Lib/test/test_clinic.py:
  add temporary Tools/clinic/ to sys.path to import the clinic
  module.

Co-Authored-By: Pablo Galindo <pablogsal@gmail.com>
@vstinner
Copy link
Member Author

Since test_clinic.py is now a "regular" test, we get regrtest features for free like reference leak hunting, test.bisect, etc.

Copy link
Member

@berkerpeksag berkerpeksag left a comment

Choose a reason for hiding this comment

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

Both PRs look good to me. Thanks for making test_clinic useful again, Victor and Pablo.

# Copyright 2012-2013 by Larry Hastings.
# Licensed to the PSF under a contributor agreement.
#
"""
Copy link
Member

Choose a reason for hiding this comment

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

Nit: IMO converting this to __doc__ doesn't make it any better. I prefer to keep license headers as comments.

Copy link
Member Author

Choose a reason for hiding this comment

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

ok, i reverted this change.

Copy link
Member

@pablogsal pablogsal left a comment

Choose a reason for hiding this comment

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

LGTM

@vstinner vstinner merged commit 65fc98e into python:master Sep 3, 2018
@vstinner vstinner deleted the test_clinic branch September 3, 2018 21:17
@miss-islington
Copy link
Contributor

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 3, 2018
* Fix Tools/clinic/clinic_test.py: add missing
  FakeClinic.destination_buffers attribute and pass a file argument
  to Clinic().
* Rename Tools/clinic/clinic_test.py to Lib/test/test_clinic.py:
  add temporary Tools/clinic/ to sys.path to import the clinic
  module.

Co-Authored-By: Pablo Galindo <pablogsal@gmail.com>
(cherry picked from commit 65fc98e)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
@bedevere-bot
Copy link

GH-9048 is a backport of this pull request to the 3.7 branch.

vstinner added a commit that referenced this pull request Sep 3, 2018
* Fix Tools/clinic/clinic_test.py: add missing
  FakeClinic.destination_buffers attribute and pass a file argument
  to Clinic().
* Rename Tools/clinic/clinic_test.py to Lib/test/test_clinic.py:
  add temporary Tools/clinic/ to sys.path to import the clinic
  module.

Co-Authored-By: Pablo Galindo <pablogsal@gmail.com>
(cherry picked from commit 65fc98e)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants