[Python-3000-checkins] r56409 - python/branches/py3k-struni/Lib/test/test_exceptions.py

Brett Cannon brett at python.org
Tue Jul 17 03:09:15 CEST 2007


On 7/16/07, guido.van.rossum <python-3000-checkins at python.org> wrote:
> Author: guido.van.rossum
> Date: Tue Jul 17 02:34:25 2007
> New Revision: 56409
>
> Modified:
>    python/branches/py3k-struni/Lib/test/test_exceptions.py
> Log:
> Make the test of chr() overflow pass.
> (Sigh. There are so many redundant tests.)
>

Yep.  But is there any good way of dealing with the issue?  Beyond
enforcing a more strict testing policy in terms of where certain tests
go to make sure redundancy is minimized, I can't think of any good
solution.

-Brett



>
> Modified: python/branches/py3k-struni/Lib/test/test_exceptions.py
> ==============================================================================
> --- python/branches/py3k-struni/Lib/test/test_exceptions.py     (original)
> +++ python/branches/py3k-struni/Lib/test/test_exceptions.py     Tue Jul 17 02:34:25 2007
> @@ -99,7 +99,7 @@
>          except TypeError: pass
>
>          self.raise_catch(ValueError, "ValueError")
> -        self.assertRaises(ValueError, chr, sys.maxunicode+1)
> +        self.assertRaises(ValueError, chr, 17<<16)
>
>          self.raise_catch(ZeroDivisionError, "ZeroDivisionError")
>          try: x = 1/0
> _______________________________________________
> Python-3000-checkins mailing list
> Python-3000-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-3000-checkins
>


More information about the Python-3000-checkins mailing list