Back to index

python3.2  3.2.2
Public Member Functions
test.test_eof.EOFTestCase Class Reference

List of all members.

Public Member Functions

def test_EOFC
def test_EOFS

Detailed Description

Definition at line 7 of file test_eof.py.


Member Function Documentation

Definition at line 8 of file test_eof.py.

00008 
00009     def test_EOFC(self):
00010         expect = "EOL while scanning string literal (<string>, line 1)"
00011         try:
00012             eval("""'this is a test\
00013             """)
00014         except SyntaxError as msg:
00015             self.assertEqual(str(msg), expect)
00016         else:
00017             raise support.TestFailed

Here is the call graph for this function:

Definition at line 18 of file test_eof.py.

00018 
00019     def test_EOFS(self):
00020         expect = ("EOF while scanning triple-quoted string literal "
00021                   "(<string>, line 1)")
00022         try:
00023             eval("""'''this is a test""")
00024         except SyntaxError as msg:
00025             self.assertEqual(str(msg), expect)
00026         else:
00027             raise support.TestFailed

Here is the call graph for this function:


The documentation for this class was generated from the following file: