~pythonregexp2.7/python/issue2636

« back to all changes in this revision

Viewing changes to Lib/test/test_eof.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-05-24 16:05:21 UTC
  • mfrom: (39021.1.401 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080524160521-1xenj7p6u3wb89et
Merged in changes from the latest python source snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
class EOFTestCase(unittest.TestCase):
8
8
    def test_EOFC(self):
9
 
        expect = "EOL while scanning single-quoted string (<string>, line 1)"
 
9
        expect = "EOL while scanning string literal (<string>, line 1)"
10
10
        try:
11
11
            eval("""'this is a test\
12
12
            """)
16
16
            raise test_support.TestFailed
17
17
 
18
18
    def test_EOFS(self):
19
 
        expect = "EOF while scanning triple-quoted string (<string>, line 1)"
 
19
        expect = ("EOF while scanning triple-quoted string literal "
 
20
                  "(<string>, line 1)")
20
21
        try:
21
22
            eval("""'''this is a test""")
22
23
        except SyntaxError, msg: