diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-08-17 23:04:59 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-08-17 23:04:59 (GMT) |
commit | 9fa96bed6fcad0faae778cf160f3415de560d08a (patch) | |
tree | aa80cf325883be4cbe0ee50d6bc54a3115cdf003 /Lib | |
parent | a8278cc37ef6557fa124a52811d79f6ba1cf328b (diff) | |
download | cpython-9fa96bed6fcad0faae778cf160f3415de560d08a.zip cpython-9fa96bed6fcad0faae778cf160f3415de560d08a.tar.gz cpython-9fa96bed6fcad0faae778cf160f3415de560d08a.tar.bz2 |
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).
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_binop.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_binop.py b/Lib/test/test_binop.py index fc7ed94e5..2ca84f4 100644 --- a/Lib/test/test_binop.py +++ b/Lib/test/test_binop.py @@ -335,6 +335,7 @@ self.assertEqual(Rat(10, 3) / 3, Rat(10, 9)) self.assertEqual(2 / Rat(5), Rat(2, 5)) 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) """ test_support.run_unittest(RatTestCase) |