2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 17:52:17 +00:00

Trivial fixes for Python 2.2a1. (One real problem remains...)

[SVN r10664]
This commit is contained in:
Ralf W. Grosse-Kunstleve
2001-07-19 00:23:06 +00:00
parent 9bca6982a4
commit 2566e1dd3a
2 changed files with 10 additions and 10 deletions

View File

@@ -422,7 +422,7 @@ Some simple overloading tests:
>>> try: r = Range('yikes')
... except TypeError, e:
... assert re.match(
... 'No overloaded functions match [(]Range, string[)]\. Candidates are:\n.*\n.*',
... 'No overloaded functions match [(]Range, str[a-z]*[)]\. Candidates are:\n.*\n.*',
... str(e))
... else: print 'no exception'
@@ -632,7 +632,7 @@ Testing overloaded free functions
15
>>> try: overloaded(1, 'foo')
... except TypeError, err:
... assert re.match("No overloaded functions match \(int, string\)\. Candidates are:",
... assert re.match("No overloaded functions match \(int, str[a-z]*\)\. Candidates are:",
... str(err))
... else:
... print 'no exception'
@@ -662,7 +662,7 @@ Testing overloaded constructors
5
>>> try: over = OverloadTest(1, 'foo')
... except TypeError, err:
... assert re.match("No overloaded functions match \(OverloadTest, int, string\)\. Candidates are:",
... assert re.match("No overloaded functions match \(OverloadTest, int, str[a-z]*\)\. Candidates are:",
... str(err))
... else:
... print 'no exception'
@@ -684,7 +684,7 @@ Testing overloaded methods
5
>>> try: over.overloaded(1,'foo')
... except TypeError, err:
... assert re.match("No overloaded functions match \(OverloadTest, int, string\)\. Candidates are:",
... assert re.match("No overloaded functions match \(OverloadTest, int, str[a-z]*\)\. Candidates are:",
... str(err))
... else:
... print 'no exception'