[Python-checkins] CVS: python/dist/src/Lib/test test_binop.py,1.1,1.2

Tim Peters tim_one@users.sourceforge.net
Fri, 17 Aug 2001 16:05:01 -0700


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

Modified Files:
	test_binop.py 
Log Message:
Fix for bug [#452230] future division isn't propagated.
builtin_eval wasn't merging in the compiler flags from the current frame;
I suppose we never noticed this before because future division is the
first future-feature that can affect expressions (nested_scopes and
generators had only statement-level effects).


Index: test_binop.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_binop.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_binop.py	2001/08/08 22:27:20	1.1
--- test_binop.py	2001/08/17 23:04:59	1.2
***************
*** 336,339 ****
--- 336,340 ----
  self.assertEqual(3.0 * Rat(1, 2), 1.5)
  self.assertEqual(Rat(1, 2) * 3.0, 1.5)
+ self.assertEqual(eval('1/2'), 0.5)
  """