diff options
author | Brett Cannon <bcannon@gmail.com> | 2007-08-14 05:51:06 +0000 |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2007-08-14 05:51:06 +0000 |
commit | 2ee4128e9b4f481d5029fe4c8ada6c12ac64e2bd (patch) | |
tree | dcdfe00aac7f3bdbe594720cc8dac33541863c04 /Lib/test/test_struct.py | |
parent | be7abbb9d9d886d83c6990f7c68e8e4f84b57c8d (diff) | |
download | cpython-git-2ee4128e9b4f481d5029fe4c8ada6c12ac64e2bd.tar.gz |
Remove test.test_support.guard_warnings_filter.
test.test_support.catch_warning is more full-featured and provides the same
functionality.
Since guard_warnings_filter was added in 2.6 there is no
backwards-compatibility issues.
Diffstat (limited to 'Lib/test/test_struct.py')
-rw-r--r-- | Lib/test/test_struct.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py index ea3a5187cf..925308d46a 100644 --- a/Lib/test/test_struct.py +++ b/Lib/test/test_struct.py @@ -50,7 +50,7 @@ def any_err(func, *args): def with_warning_restore(func): def _with_warning_restore(*args, **kw): - with test.test_support.guard_warnings_filter(): + with test.test_support.catch_warning(): # Grrr, we need this function to warn every time. Without removing # the warningregistry, running test_tarfile then test_struct would fail # on 64-bit platforms. |