DeprecationWarnings not being suppressed in 2.0.0 release
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
John A Meinel |
Bug Description
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I haven't tracked down the cause exactly, but something in the libraries
loaded for python2.6 are adding an ignore to some deprecation warnings.
This is what I get before we do our own deprecation suppression:
import warnings
f = warnings.
('ignore', <bzrlib.
'exceptions.
0x025B7990>, 0)
f[1]._regex_args
('sys.exc_clear', 2)
f[3]._regex_args
('threading',)
Looking at that, it seems that it is the 'threading' module itself which
is suppressing the deprecation warning. And I've confirmed that by
printing 'warnings.filter' before and after importing 'threading'.
Anyway, our current deprecation filter says "only add a filter if there
are no other filters handling deprecation warnings".
We could change this with:
=== modified file 'bzrlib/
- --- bzrlib/commands.py 2009-06-19 09:06:56 +0000
+++ bzrlib/commands.py 2009-10-01 15:59:00 +0000
@@ -1090,7 +1090,7 @@
# Is this a final release version? If so, we should suppress warnings
if bzrlib.
- - suppress_
+ suppress_
if argv is None:
argv = osutils.
else:
John
=:->
affects bzr
status confirmed
milestone 2.0.1
importance high
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkr
R0MAoJwKOBWAzn0
=NSs8
-----END PGP SIGNATURE-----
Related branches
Changed in bzr: | |
assignee: | nobody → John A Meinel (jameinel) |
status: | Confirmed → Fix Committed |
Changed in bzr: | |
status: | Fix Committed → Fix Released |
> === modified file 'bzrlib/ commands. py' version_ info[3] == 'final': deprecation_ warnings( override= False) deprecation_ warnings( override= True) get_unicode_ argv()
> - --- bzrlib/commands.py 2009-06-19 09:06:56 +0000
> +++ bzrlib/commands.py 2009-10-01 15:59:00 +0000
> @@ -1090,7 +1090,7 @@
>
> # Is this a final release version? If so, we should suppress warnings
> if bzrlib.
> - - suppress_
> + suppress_
> if argv is None:
> argv = osutils.
> else:
It seems reasonable to me. I don't recall why we do that - perhaps for testing.
-- launchpad. net/~mbp/>
Martin <http://