Skip to content
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

Deprecation Warning fix on ctypes module test #59611

Closed
flavioribeiro mannequin opened this issue Jul 20, 2012 · 6 comments
Closed

Deprecation Warning fix on ctypes module test #59611

flavioribeiro mannequin opened this issue Jul 20, 2012 · 6 comments
Assignees
Labels
tests Tests in the Lib/test dir topic-ctypes type-bug An unexpected behavior, bug, or error

Comments

@flavioribeiro
Copy link
Mannequin

flavioribeiro mannequin commented Jul 20, 2012

BPO 15406
Nosy @meadori, @hynek
Files
  • issue15406_fix_ctypes_warnings.diff
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/meadori'
    closed_at = <Date 2012-07-20.17:58:31.362>
    created_at = <Date 2012-07-20.14:44:06.389>
    labels = ['ctypes', 'type-bug', 'tests']
    title = 'Deprecation Warning fix on ctypes module test'
    updated_at = <Date 2012-07-20.17:58:31.314>
    user = 'https://bugs.python.org/flavioribeiro'

    bugs.python.org fields:

    activity = <Date 2012-07-20.17:58:31.314>
    actor = 'meador.inge'
    assignee = 'meador.inge'
    closed = True
    closed_date = <Date 2012-07-20.17:58:31.362>
    closer = 'meador.inge'
    components = ['Tests', 'ctypes']
    creation = <Date 2012-07-20.14:44:06.389>
    creator = 'flavio.ribeiro'
    dependencies = []
    files = ['26455']
    hgrepos = []
    issue_num = 15406
    keywords = ['patch']
    message_count = 6.0
    messages = ['165933', '165934', '165949', '165950', '165960', '165962']
    nosy_count = 4.0
    nosy_names = ['meador.inge', 'python-dev', 'hynek', 'flavio.ribeiro']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue15406'
    versions = ['Python 3.2', 'Python 3.3']

    @flavioribeiro
    Copy link
    Mannequin Author

    flavioribeiro mannequin commented Jul 20, 2012

    Looking for bugs to be solved on a cPython Sprint, Hynek reported at core-mentorship list some Deprecation Warnings running the test suite in regression mode.

    This issue aims to solve this warnings.

    @flavioribeiro flavioribeiro mannequin added the tests Tests in the Lib/test dir label Jul 20, 2012
    @flavioribeiro
    Copy link
    Mannequin Author

    flavioribeiro mannequin commented Jul 20, 2012

    The patch remove this warning:

    $ ./python.exe -Wm -m test test_ctypes
    [1/1] test_ctypes
    /Users/flavio.barbosa/dev/cpython/Lib/ctypes/test/test_bitfields.py:249: DeprecationWarning: Please use assertEqual instead.
      self.assertEquals(x.a, 10)
    1 test OK.
    [155770 refs]

    @flavioribeiro
    Copy link
    Mannequin Author

    flavioribeiro mannequin commented Jul 20, 2012

    One issue per module will be created to facilitate the issues management.

    @flavioribeiro flavioribeiro mannequin changed the title Deprecation Warnings fixes on test suite Deprecation Warning fix on ctypes module Jul 20, 2012
    @flavioribeiro flavioribeiro mannequin changed the title Deprecation Warning fix on ctypes module Deprecation Warning fix on ctypes module test Jul 20, 2012
    @meadori
    Copy link
    Member

    meadori commented Jul 20, 2012

    Thanks for the patch. I will review it shortly.

    @meadori meadori self-assigned this Jul 20, 2012
    @meadori meadori added the type-bug An unexpected behavior, bug, or error label Jul 20, 2012
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jul 20, 2012

    New changeset fb181698775d by Meador Inge in branch '3.2':
    Issue bpo-15406: Fix deprecation warning in ctypes test_bitfields.py
    http://hg.python.org/cpython/rev/fb181698775d

    New changeset f93efd4c45bd by Meador Inge in branch 'default':
    Issue bpo-15406: Fix deprecation warning in ctypes test_bitfields.py
    http://hg.python.org/cpython/rev/f93efd4c45bd

    @meadori
    Copy link
    Member

    meadori commented Jul 20, 2012

    Thanks again for the patch Flávio. Please contribute again to Python (be sure to fill out a contributor agreement if you do: http://www.python.org/psf/contrib/).

    @meadori meadori closed this as completed Jul 20, 2012
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    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 topic-ctypes type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant