[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-08-03 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

Hi Ezio, what's the status on this issue for 2.6.6rc1?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-08-03 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

I am removing this as a release blocker given all of Ezio's great work to get 
the test suite clean with -3.  I will leave it up to him to actually close the 
issue once the work is complete.  It no longer needs to block 2.6.6.

--
priority: release blocker - high

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-08-03 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

I fixed the deprecation warnings on 2.6 in r83519, r83576-r83579, 
r83620-r83622, r83627-r83632, r83635, r83637-83642, r83652-83656, r83658, 
r83687.
Now the test suite should pass with and without -3 -Wd with no errors and no 
warnings (except an import warning on _ctypes and/or _multiprocessing).
This can be closed.

--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-08-01 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
priority: critical - release blocker

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-07-31 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

This issue is over, except for #7723 which is tracked separately.

--
dependencies:  -sqlite only accept buffer() for BLOB objects(input/output)
resolution: accepted - fixed
stage: patch review - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-07-31 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

Barry, is it OK if I backport this to 2.6 before the rc1?

--
status: closed - open
versions: +Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-04-03 Thread Benjamin Peterson

Changes by Benjamin Peterson benja...@python.org:


--
priority: release blocker - critical

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-04-02 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

Additional fixes: r79576, r79577, r79578 (idlelib package and some test modules)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-04-01 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

Other py3k warnings:

lib\distutils\util.py:209: DeprecationWarning: apply() not supported in 3.x; 
use func(*args, **kwargs)
  return apply(os.path.join, paths)

lib\distutils\command\build_ext.py:679: DeprecationWarning: apply() not 
supported in 3.x; use func(*args, **kwargs)
  return apply(os.path.join, ext_path) + '_d' + so_ext

lib\platform.py:1035: DeprecationWarning: dict.has_key() not supported in 3.x; 
use the in operator
  if _default_architecture.has_key(sys.platform):

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-04-01 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

Fixed with r79558, except test_multiprocessing.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-03-31 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

Now the -Wd and -3 flags are active on some buildbots.
And the first failures ...


Need to backport fixes from py3k branch for:
- cgitb SyntaxWarning: tuple parameter unpacking has been removed in 3.x
- idlelib reduce() not supported in 3.x; use functools.reduce()


And test_multiprocessing is failing on: sys.exc_clear() not supported in 3.x; 
use except clauses

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-03-21 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

other py3k warnings silenced with r79187 r79188 r79189

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-03-20 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

More warnings silenced with r79165.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-03-18 Thread Jesús Cea Avión

Jesús Cea Avión j...@jcea.es added the comment:

Florent you are right, good catch. I can not use context managers because 
with is invalid syntax in python 2.3 and 2.4, that I must support for a while.

I have implemented a context manager manually, following the description in PEP 
343. This change is available in pybsddb 4.8.3+. I plan to integrate pybsddb 
4.8.3, see issue8156.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-03-18 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-03-18 Thread Jesús Cea Avión

Jesús Cea Avión j...@jcea.es added the comment:

Florent you are right, good catch. I can not use context managers because 
with is invalid syntax in python 2.3 and 2.4, that I must support for a while.

I have implemented a context manager manually, following the description in PEP 
343. This change is available in pybsddb 4.8.3+. I plan to integrate pybsddb 
4.8.3+, see issue8156.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-03-17 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

 Checking the pybsddb 4.8.4devel with current trunk I still see this:

It is because the test_early_close module calls resetwarnings().
It defeats the filter in the threading module.

You may change the test case with a context manager:

  with warnings.catch_warnings():
  warnings.resetwarnings()
  # test the warning

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-03-17 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

I took part of Florent latest patch, changed a few things and committed it in 
r79023.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-03-15 Thread Jesús Cea Avión

Jesús Cea Avión j...@jcea.es added the comment:

Checking the pybsddb 4.8.4devel with current trunk I still see this:


Berkeley DB 4.8.26: (December 18, 2009)
bsddb.db.version():   (4, 8, 26)
bsddb.db.__version__: 4.8.4devel1
bsddb.db.cvsid:   $Id: _bsddb.c,v 6408a812f035 2010/03/15 19:15:06 jcea $
py module:
/home/pybsddb/build/lib.solaris-2.10-i86pc-2.7/bsddb3/__init__.pyc
extension module: 
/home/pybsddb/build/lib.solaris-2.10-i86pc-2.7/bsddb3/__init__.pyc
python version:   2.7a4+ (trunk, Mar 16 2010, 00:50:35) 
[GCC 4.4.3]
My pid:   5068
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
./usr/local/lib/python2.7/threading.py:575:
 DeprecationWarning: sys.exc_clear() not supported in 3.x; use except clauses
  self.__exc_clear()
.
--
Ran 470 tests in 7.605s

OK



Python 2.6.4 has the same issue too.

--
nosy: +jcea

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-03-08 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


Removed file: 
http://bugs.python.org/file16075/issue7092_py3k_warnings_args_v2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-03-08 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


Removed file: 
http://bugs.python.org/file16076/issue7092_py3k_warnings_noargs_v2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-03-08 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


Removed file: http://bugs.python.org/file16113/issue7092_test_support_v2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-03-08 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

Silence the last warnings, using check_py3k_warnings.

But we could provide a smaller patch, if #7832 is fixed before.

--
dependencies: +assertSameElements([0, 1, 1], [0, 0, 1]) does not fail
Added file: http://bugs.python.org/file16507/issue7092_without_7832.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-03 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


--
dependencies: +Improve test_support.check_warnings()

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-03 Thread Florent Xicluna

Florent Xicluna la...@yahoo.fr added the comment:

The enhancement proposed on #7849 should be considered before reviewing the 
last 2 patches.

If #7849 is accepted, these patches will need update.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file16043/issue7092_bsddb3.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file16065/issue7092_bsddb3v2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

bsddb is now fixed in r77910.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Florent Xicluna

Florent Xicluna la...@yahoo.fr added the comment:

Proposed patch to filter out some deprecated comparisons in unittest module.

--
Added file: http://bugs.python.org/file16096/issue7092_unittest.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

test_exceptions and test_pep352 fixed in r77913.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


Removed file: http://bugs.python.org/file16053/issue7092_test_exceptions_v2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file16096/issue7092_unittest.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Florent Xicluna

Florent Xicluna la...@yahoo.fr added the comment:

test_unittest fixed in r77911. See also #7837.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

In issue7092_test_support:
1) silence_py3k_warning should have a docstring that explain what the function 
does and what filters should be, possibly including an example;
2) I'd use if not filters: instead of if filters == ():;
3) are there cases where the third arg of filterwarnings is not 
DeprecationWarning? If not, it's probably better to turn filters in a list of 
regex instead than a sequence of tuples like (regex, DeprecationWarning);
4) maybe silence_py3k_warning could yield an instance of WarningsRecorder, in 
case someone wants to access the silenced warnings.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file16044/issue7092_test_support.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Florent Xicluna

Florent Xicluna la...@yahoo.fr added the comment:

Docstring added.

Notes:
 - there's 2 categories of -3 warnings: SyntaxWarning and DeprecationWarning.
 - AFAICT, the WarningsRecorder needs catch_warnings(record=True).
   And in such case, *all* warnings are silenced.

--
Added file: http://bugs.python.org/file16113/issue7092_test_support_v2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

Applied the syntax fixes in r77942.

--
assignee:  - ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-02-02 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


Removed file: http://bugs.python.org/file16048/issue7092_syntax_fixes.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-31 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file16047/issue7092_Wd_warnings.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-31 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file16050/issue7092_py3k_warnings_args.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-31 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: 
http://bugs.python.org/file16051/issue7092_py3k_warnings_noargs.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-31 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Added file: 
http://bugs.python.org/file16075/issue7092_py3k_warnings_args_v2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-31 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Added file: 
http://bugs.python.org/file16076/issue7092_py3k_warnings_noargs_v2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-30 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file16046/issue7092_test_exceptions.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-30 Thread Florent Xicluna

Florent Xicluna la...@yahoo.fr added the comment:

Cleanup test_exceptions:
 - removed filterwarnings for testSlicing

--
Added file: http://bugs.python.org/file16053/issue7092_test_exceptions_v2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-30 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file16049/issue7092_silence_imports.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-30 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

The patch for bsddb3 looks good, however there's no reason (IMHO) to keep in 
the tests those if sys.version_info[0]  3: or replace the version with (2,6) 
since we are already using things like assertIn that are 2.7-only. I changed it 
only to avoid warnings, and left it unchanged in other places (not related to 
this issue) and in dbtables.py (to preserve compatibility in the unlikely case 
that someone wants to try running 2.7's bsddb with older versions of Python).
Attached a new patch.

--
Added file: http://bugs.python.org/file16065/issue7092_bsddb3v2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

A couple of comments about issue7092_syntax_imports_v3.diff too:
1) in test_copy you remove (k,v), but left the name 'k' even if now it 
represent the item and not the key;
2) in test_fractions you should probably use self.fail() instead of an assert;
3) on test_ftp you can use two separate lines and remove the ';';
4) in test_pyclbr there's one extra 'f' in the comment in assertHaskey;
5) in test_xml_etree_c you can either leave callable() and catch the warning or 
use isinstance(x, collections.Callable) instead (there are also a few more 
places where callable was used too).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna

Florent Xicluna la...@yahoo.fr added the comment:

Thank you for the review and your comments.
Here, the replies.



 Amaury review - msg98491

 Here is my review of issue7092_syntax_imports_v3.diff:

 - test_itertools.py: please replace
   [tuple([arg[i] if i  len(arg) else None for arg in args])
for i in range(max(map(len, args)))]
   by something more readable (nested for loops for example)

It is the 3.x syntax.
-- No change

 - test_mailbox.py: why doesn't test_support.import_module('rfc822')
   specify deprecated=True? maybe the module can be imported normally...

Added the deprecated=True

 - test_pyclbr.py:   replace self.assertTrue(key in obj) with assertIn()
 - test_wsgiref.py:  replace self.assertTrue(key in h.environ)
 - test_queue.py: test could be identical to the one in py3k.

Thanks
-- Done

 
 Ezio review - msg98494
 
 Here's mine about issue7092_check_warnings_v3.diff:
 
 1) test_callable should keep testing callable() and the warnings should be 
 caught;

Done

 2) in test_bsddb3 the problems should be correct in the module if possible 
 and worth it (the module is deprecated);

Ok. I prepare a separate patch to fix bsddb3

 3) next to the several '# Silence py3k warnings' it would be nice to have a 
 note about what warning you are exactly silencing;
 4) def test_deprecated_builtin_map - test_deprecated_builtin_map_with_None, 
 otherwise it seems that map is deprecated;

Done

 5) in test[_deep]_copy I'm not entirely sure that the tests are equivalent 
 using in (and if they are you should use assertIn);

Will use assertSetEqual, no need to reinvent the wheel

 6) in test_socket I would keep callable, also shouldn't the raise in the next 
 line raise a warning as well?;

Ok to keep callable. For the next line, I do not see the warning.

 7)  the self.assertEqual(`u2`, `d2`) in test_userdict could just use repr() 
 instead;

Done

 8) a few tests in test_weakref should use assert[Not]In instead of 
 assertTrue(x [not] in y).

Done

 
 Ezio review - msg98507
 
 A couple of comments about issue7092_syntax_imports_v3.diff too:
 1) in test_copy you remove (k,v), but left the name 'k' even if now it 
 represent the item and not the key;

Changed 'k'- 'pair' (like 3.x)

 2) in test_fractions you should probably use self.fail() instead of an assert;

The surrounding methods use assert 
-- No change

 3) on test_ftp you can use two separate lines and remove the ';';

Done

 4) in test_pyclbr there's one extra 'f' in the comment in assertHaskey;

It is not an extra f. 'iff' = if and only if (not obvious for non-English 
people)

 5) in test_xml_etree_c you can either leave callable() and catch the warning 
 or use isinstance(x, collections.Callable) instead (there are also a few more 
 places where callable was used too).

It is done this way in 3.x.
I propose to fix it separately (if a fix is required).



Now I prepare the updated patches.
I follow the proposal of Amaury: create a specific 
test_support.silence_py3k_warnings() context manager.
It replaces the check_warnings and filterwarnings of the proposed patches.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Added file: http://bugs.python.org/file16042/issue7269_bsddb3.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file16042/issue7269_bsddb3.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Added file: http://bugs.python.org/file16043/issue7092_bsddb3.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Added file: http://bugs.python.org/file16044/issue7092_test_support.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file15925/issue7092_json.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file15994/issue7092_syntax_imports_v3.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file15995/issue7092_check_warnings_v3.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file15996/issue7092_filterwarnings_v3.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Added file: http://bugs.python.org/file16046/issue7092_test_exceptions.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Added file: http://bugs.python.org/file16047/issue7092_Wd_warnings.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Added file: http://bugs.python.org/file16048/issue7092_syntax_fixes.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Jean-Paul Calderone

Changes by Jean-Paul Calderone exar...@divmod.com:


--
nosy:  -exarkun

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Added file: http://bugs.python.org/file16049/issue7092_silence_imports.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Added file: http://bugs.python.org/file16050/issue7092_py3k_warnings_args.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Added file: http://bugs.python.org/file16051/issue7092_py3k_warnings_noargs.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Florent Xicluna

Florent Xicluna la...@yahoo.fr added the comment:

Each patch can be reviewed and committed separately (except the last 2).

[patch 1] bsddb3.diff – related to Bsddb3
[patch 2] test_support.diff – new helper silence_py3k_warnings()
[patch 3] test_exceptions.diff – test_pep352 and test_exceptions
[patch 4] Wd_warnings.diff – fix few -Wd warnings
[patch 5] syntax_fixes.diff – fix syntax only (2to3-like)
[patch 6] silence_imports.diff – import deprecated modukes


Patches below require the new helper silence_py3k_warnings (patch 2)

[patch 7] py3k_warnings_args.diff – 26 files
[patch 8] py3k_warnings_noargs.diff – 28 files

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-29 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

Warnings for imports of deprecated modules are now silenced in r77841 (patch 6 
/ silence_imports.diff).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-28 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

Here is my review of issue7092_syntax_imports_v3.diff:

- test_itertools.py: please replace
  [tuple([arg[i] if i  len(arg) else None for arg in args])
   for i in range(max(map(len, args)))]
  by something more readable (nested for loops for example)

- test_mailbox.py: why doesn't test_support.import_module('rfc822')
  specify deprecated=True? maybe the module can be imported normally...

- test_pyclbr.py:   replace self.assertTrue(key in obj) with assertIn()
- test_wsgiref.py:  replace self.assertTrue(key in h.environ)

- test_queue.py: test could be identical to the one in py3k.

--
nosy: +amaury.forgeotdarc

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-28 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

Here's mine about issue7092_check_warnings_v3.diff:

1) test_callable should keep testing callable() and the warnings should be 
caught;
2) in test_bsddb3 the problems should be correct in the module if possible and 
worth it (the module is deprecated);
3) next to the several '# Silence py3k warnings' it would be nice to have a 
note about what warning you are exactly silencing;
4) def test_deprecated_builtin_map - test_deprecated_builtin_map_with_None, 
otherwise it seems that map is deprecated;
5) in test[_deep]_copy I'm not entirely sure that the tests are equivalent 
using in (and if they are you should use assertIn);
6) in test_socket I would keep callable, also shouldn't the raise in the next 
line raise a warning as well?;
7)  the self.assertEqual(`u2`, `d2`) in test_userdict could just use repr() 
instead;
8) a few tests in test_weakref should use assert[Not]In instead of assertTrue(x 
[not] in y).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-26 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

json is now fixed in r77755.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-24 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file15928/issue7092_filterwarnings_v2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-24 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file15929/issue7092_syntax_imports_v2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-24 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file15788/issue7092_check_warnings.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-24 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Added file: http://bugs.python.org/file15994/issue7092_syntax_imports_v3.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-24 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Added file: http://bugs.python.org/file15995/issue7092_check_warnings_v3.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-24 Thread Florent Xicluna

Florent Xicluna la...@yahoo.fr added the comment:

Re-uploaded after fixes for #7737.

To remove all -3 warnings:
 - apply the 4 patches
 - fix SQLite buffer() warnings (issue #7223)

--
stage: committed/rejected - patch review
Added file: http://bugs.python.org/file15996/issue7092_filterwarnings_v3.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-17 Thread Florent Xicluna

Florent Xicluna la...@yahoo.fr added the comment:

I've created issue7723 for sqlite3 module using buffer().
It's not so simple.

--
dependencies: +sqlite only accept buffer() for BLOB objects (input/output)

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-17 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file15794/issue7092_json_sqlite_v2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-17 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Added file: http://bugs.python.org/file15925/issue7092_json.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-17 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file15787/issue7092_syntax_imports.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-17 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file15789/issue7092_filterwarnings.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-17 Thread Florent Xicluna

Florent Xicluna la...@yahoo.fr added the comment:

Patches updated against trunk.

--
Added file: http://bugs.python.org/file15927/issue7092_syntax_imports_v2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-17 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Added file: http://bugs.python.org/file15928/issue7092_filterwarnings_v2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-17 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file15927/issue7092_syntax_imports_v2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-17 Thread Florent Xicluna

Florent Xicluna la...@yahoo.fr added the comment:

Re-uploaded syntax_imports_v2 with patch for test_bsddb.py

--
Added file: http://bugs.python.org/file15929/issue7092_syntax_imports_v2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-17 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
nosy:  -brett.cannon

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-12 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file15814/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-09 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

This can wait.

--
priority: release blocker - deferred blocker

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-09 Thread Benjamin Peterson

Changes by Benjamin Peterson benja...@python.org:


--
priority: deferred blocker - release blocker

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-09 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Hello

I read the diff for revision 77310 and noticed that arguments with parens
(I mean things like ``def spam((x, y))``, forgot the name) were replaced
by grab-all arguments that are unpacked later (``def spam(x_y)``). I was
wondering whether the documentation for these changed functions was still
accurate when describing the arguments they take. It seems none of them
have a docstring, and docs.python.org/dev/ isn’t up to date so I can’t
check right now.

Kind regards

--
nosy: +Merwok

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-09 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

The documentation is still accurate. The translation is literal so there no
shift except where the unpacking exception occurs.

On Sat, Jan 9, 2010 at 20:13, Éric Araujo rep...@bugs.python.org wrote:


 Éric Araujo mer...@netwok.org added the comment:

 Hello

 I read the diff for revision 77310 and noticed that arguments with parens
 (I mean things like ``def spam((x, y))``, forgot the name) were replaced
 by grab-all arguments that are unpacked later (``def spam(x_y)``). I was
 wondering whether the documentation for these changed functions was still
 accurate when describing the arguments they take. It seems none of them
 have a docstring, and docs.python.org/dev/ isn’t up to date so I can’t
 check right now.

 Kind regards

 --
 nosy: +Merwok

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue7092
 ___


--
Added file: http://bugs.python.org/file15814/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___The documentation is still accurate. The translation is literal so there no 
shift except where the unpacking exception occurs.brbrdiv 
class=gmail_quoteOn Sat, Jan 9, 2010 at 20:13, Éric Araujo span 
dir=ltrlt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/span 
wrote:br

blockquote class=gmail_quote style=margin:0 0 0 .8ex;border-left:1px #ccc 
solid;padding-left:1ex;br
Éric Araujo lt;a href=mailto:mer...@netwok.org;mer...@netwok.org/agt; 
added the comment:br
br
Hellobr
br
I read the diff for revision 77310 and noticed that arguments with parensbr
(I mean things like ``def spam((x, y))``, forgot the name) were replacedbr
by grab-all arguments that are unpacked later (``def spam(x_y)``). I wasbr
wondering whether the documentation for these changed functions was stillbr
accurate when describing the arguments they take. It seems none of thembr
have a docstring, and a href=http://docs.python.org/dev/; 
target=_blankdocs.python.org/dev//a isn’t up to date so I can’tbr
check right now.br
br
Kind regardsbr
br
--br
nosy: +Merwokbr
divdiv/divdiv class=h5br
___br
Python tracker lt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br
lt;a href=http://bugs.python.org/issue7092; 
target=_blankhttp://bugs.python.org/issue7092/agt;br
___br
/div/div/blockquote/divbr
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-08 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: 
http://bugs.python.org/file15776/issue7092_Lib_tests_big_patch.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-08 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Added file: http://bugs.python.org/file15787/issue7092_syntax_imports.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-08 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Added file: http://bugs.python.org/file15788/issue7092_check_warnings.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-08 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Added file: http://bugs.python.org/file15789/issue7092_filterwarnings.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-08 Thread Florent Xicluna

Florent Xicluna la...@yahoo.fr added the comment:

I split the Big Patch™ into pieces.
It should be easier to review and merge.

 - issue7092_syntax_imports.diff
   -- Only syntax and import_module(m, deprecated=True)

 - issue7092_check_warnings.diff
   -- Use test.test_support.check_warnings()

 - issue7092_filterwarnings.diff
   -- Use warnings.filterwarnings()

 - issue7092_json_sqlite.diff
   -- Silence external libraries

 - issue7092_cpickle.diff
   -- Remove cPickle warning

And there's a last patch for test_index attached to issue7532.


Then you reach the Zen of Python.
  “Do not speak — unless it improves on silence.”

--
Added file: http://bugs.python.org/file15790/issue7092_json_sqlite.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-08 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

About issue7092_json_sqlite.diff: if json produces py3k warnings in normal use 
(does it?), the warnings should be suppressed in json itself, not in 
regrtest.py.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-08 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Removed file: http://bugs.python.org/file15790/issue7092_json_sqlite.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-08 Thread Florent Xicluna

Changes by Florent Xicluna la...@yahoo.fr:


Added file: http://bugs.python.org/file15793/issue7092_regrtest_clean.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-08 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

issue7092_cpickle.diff was committed to trunk and 2.6.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-08 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


Removed file: http://bugs.python.org/file15773/issue7092_cpickle.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >