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

Unified Diff: Lib/test/test_fractions.py

Issue 7652: Merge C version of decimal into py3k.
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/test_decimal.py ('k') | Lib/test/test_numeric_tower.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_fractions.py Sat Mar 10 16:11:49 2012 +0000
+++ b/Lib/test/test_fractions.py Sat Mar 10 18:12:20 2012 +0100
@@ -401,14 +401,10 @@
def testMixingWithDecimal(self):
# Decimal refuses mixed arithmetic (but not mixed comparisons)
- self.assertRaisesMessage(
- TypeError,
- "unsupported operand type(s) for +: 'Fraction' and 'Decimal'",
- operator.add, F(3,11), Decimal('3.1415926'))
- self.assertRaisesMessage(
- TypeError,
- "unsupported operand type(s) for +: 'Decimal' and 'Fraction'",
- operator.add, Decimal('3.1415926'), F(3,11))
+ self.assertRaises(TypeError, operator.add,
+ F(3,11), Decimal('3.1415926'))
+ self.assertRaises(TypeError, operator.add,
+ Decimal('3.1415926'), F(3,11))
def testComparisons(self):
self.assertTrue(F(1, 2) < F(2, 3))
« no previous file with comments | « Lib/test/test_decimal.py ('k') | Lib/test/test_numeric_tower.py » ('j') | no next file with comments »

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