Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(27687)

Delta Between Two Patch Sets: Lib/test/test_numeric_tower.py

Issue 7652: Merge C version of decimal into py3k.
Left Patch Set: Created 7 years, 10 months ago
Right Patch Set: Created 7 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/test/test_fractions.py ('k') | Misc/valgrind-python.supp » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 # test interactions between int, float, Decimal and Fraction 1 # test interactions between int, float, Decimal and Fraction
2 2
3 import unittest 3 import unittest
4 import random 4 import random
5 import math 5 import math
6 import sys 6 import sys
7 import operator 7 import operator
8 from test.support import run_unittest 8 from test.support import run_unittest
9 9
10 from decimal import Decimal as D 10 from decimal import Decimal as D
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 for op in operator.le, operator.lt, operator.ge, operator.gt: 197 for op in operator.le, operator.lt, operator.ge, operator.gt:
198 self.assertRaises(TypeError, op, z, v) 198 self.assertRaises(TypeError, op, z, v)
199 self.assertRaises(TypeError, op, v, z) 199 self.assertRaises(TypeError, op, v, z)
200 200
201 201
202 def test_main(): 202 def test_main():
203 run_unittest(HashTest, ComparisonTest) 203 run_unittest(HashTest, ComparisonTest)
204 204
205 if __name__ == '__main__': 205 if __name__ == '__main__':
206 test_main() 206 test_main()
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+