]>
git.proxmox.com Git - mirror_edk2.git/blob - AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_future3.py
1 from __future__
import nested_scopes
2 from __future__
import division
5 from test
import test_support
15 class TestFuture(unittest
.TestCase
):
17 def test_floor_div_operator(self
):
18 self
.assertEqual(7 // 2, 3)
20 def test_true_div_as_default(self
):
21 self
.assertAlmostEqual(7 / 2, 3.5)
23 def test_nested_scopes(self
):
24 self
.assertEqual(nester(), 3)
27 test_support
.run_unittest(TestFuture
)
29 if __name__
== "__main__":