This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Deprecation Warning fix on ctypes module test
Type: behavior Stage: resolved
Components: ctypes, Tests Versions: Python 3.2, Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: meador.inge Nosy List: flavio.ribeiro, hynek, meador.inge, python-dev
Priority: normal Keywords: patch

Created on 2012-07-20 14:44 by flavio.ribeiro, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue15406_fix_ctypes_warnings.diff flavio.ribeiro, 2012-07-20 14:47 review
Messages (6)
msg165933 - (view) Author: Flávio Ribeiro (flavio.ribeiro) * Date: 2012-07-20 14:44
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.
msg165934 - (view) Author: Flávio Ribeiro (flavio.ribeiro) * Date: 2012-07-20 14:47
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]
msg165949 - (view) Author: Flávio Ribeiro (flavio.ribeiro) * Date: 2012-07-20 17:22
One issue per module will be created to facilitate the issues management.
msg165950 - (view) Author: Meador Inge (meador.inge) * (Python committer) Date: 2012-07-20 17:26
Thanks for the patch.  I will review it shortly.
msg165960 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-07-20 17:55
New changeset fb181698775d by Meador Inge in branch '3.2':
Issue #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 #15406: Fix deprecation warning in ctypes test_bitfields.py
http://hg.python.org/cpython/rev/f93efd4c45bd
msg165962 - (view) Author: Meador Inge (meador.inge) * (Python committer) Date: 2012-07-20 17:58
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/).
History
Date User Action Args
2022-04-11 14:57:33adminsetgithub: 59611
2012-07-20 17:58:31meador.ingesetstatus: open -> closed
versions: + Python 3.2
messages: + msg165962

resolution: fixed
stage: patch review -> resolved
2012-07-20 17:55:13python-devsetnosy: + python-dev
messages: + msg165960
2012-07-20 17:26:08meador.ingesetassignee: meador.inge
type: behavior
components: + ctypes

nosy: + meador.inge
messages: + msg165950
stage: patch review
2012-07-20 17:24:25flavio.ribeirosettitle: Deprecation Warning fix on ctypes module -> Deprecation Warning fix on ctypes module test
2012-07-20 17:22:44flavio.ribeirosetmessages: + msg165949
title: Deprecation Warnings fixes on test suite -> Deprecation Warning fix on ctypes module
2012-07-20 15:00:32hyneksetnosy: + hynek
2012-07-20 14:47:34flavio.ribeirosetfiles: + issue15406_fix_ctypes_warnings.diff
keywords: + patch
messages: + msg165934
2012-07-20 14:44:06flavio.ribeirocreate