[Python-3000-checkins] r65852 - python/branches/py3k/Lib/test/test_threading.py

Brett Cannon brett at python.org
Tue Aug 19 20:38:26 CEST 2008


On Tue, Aug 19, 2008 at 7:32 AM, benjamin.peterson
<python-3000-checkins at python.org> wrote:
> Author: benjamin.peterson
> Date: Tue Aug 19 16:32:56 2008
> New Revision: 65852
>
> Log:
> fix possible error
>
> Modified:
>   python/branches/py3k/Lib/test/test_threading.py
>
> Modified: python/branches/py3k/Lib/test/test_threading.py
> ==============================================================================
> --- python/branches/py3k/Lib/test/test_threading.py     (original)
> +++ python/branches/py3k/Lib/test/test_threading.py     Tue Aug 19 16:32:56 2008
> @@ -329,7 +329,10 @@
>
>         t = threading.Thread()
>         with catch_warning() as w:
> -            del threading.__warningregistry__
> +            try:
> +                del threading.__warningregistry__
> +            except AttributeError:
> +                pass
>             msg = "isDaemon() is deprecated in favor of the " \
>                   "Thread.daemon property"
>             check(t.isDaemon(), w, msg)

Isn't testing warnings fun?  =)

-Brett


More information about the Python-3000-checkins mailing list