[Python-checkins] python/dist/src/Lib/test test_complex.py, 1.12.6.1, 1.12.6.2

doerwalter at users.sourceforge.net doerwalter at users.sourceforge.net
Tue Aug 5 10:12:12 EDT 2003


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv8390/Lib/test

Modified Files:
      Tag: release23-maint
	test_complex.py 
Log Message:
Remove __floordiv__ test, as it's deprecated.


Index: test_complex.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_complex.py,v
retrieving revision 1.12.6.1
retrieving revision 1.12.6.2
diff -C2 -d -r1.12.6.1 -r1.12.6.2
*** test_complex.py	5 Aug 2003 16:01:08 -0000	1.12.6.1
--- test_complex.py	5 Aug 2003 16:12:09 -0000	1.12.6.2
***************
*** 60,65 ****
              q = z.__truediv__(x)
              self.assertClose(q, y)
-             q2 = z.__floordiv__(x)
-             self.assertClose(q2, math.floor(q.real)+0j)
          if y != 0:
              q = z / y
--- 60,63 ----
***************
*** 69,74 ****
              q = z.__truediv__(y)
              self.assertClose(q, x)
-             q2 = z.__floordiv__(y)
-             self.assertClose(q2, math.floor(q.real)+0j)
  
      def test_div(self):
--- 67,70 ----





More information about the Python-checkins mailing list