[Python-Dev] r84771 - python/branches/release27-maint/Lib/test/test_io.py

Georg Brandl g.brandl at gmx.net
Thu Sep 16 17:27:50 CEST 2010


Maybe you want to mention *who* warns?

Georg

Am 13.09.2010 10:20, schrieb florent.xicluna:
> Author: florent.xicluna
> Date: Mon Sep 13 10:20:19 2010
> New Revision: 84771
> 
> Log:
> Silence warning about 1/0
> 
> Modified:
>    python/branches/release27-maint/Lib/test/test_io.py
> 
> Modified: python/branches/release27-maint/Lib/test/test_io.py
> ==============================================================================
> --- python/branches/release27-maint/Lib/test/test_io.py	(original)
> +++ python/branches/release27-maint/Lib/test/test_io.py	Mon Sep 13 10:20:19 2010
> @@ -2484,7 +2484,7 @@
>          signal.signal(signal.SIGALRM, self.oldalrm)
>  
>      def alarm_interrupt(self, sig, frame):
> -        1/0
> +        1 // 0
>  
>      @unittest.skipUnless(threading, 'Threading required for this test.')
>      def check_interrupted_write(self, item, bytes, **fdopen_kwargs):


-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.



More information about the Python-Dev mailing list