summaryrefslogtreecommitdiff
path: root/sys/lib/python/test/test_eof.py
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-05-04 05:41:33 +0000
committercinap_lenrek <cinap_lenrek@localhost>2011-05-04 05:41:33 +0000
commitb8436b026a90291ba26afa4f7a2700720b03339f (patch)
tree3098aede87640c80567ecb31022e0404a8b5ec75 /sys/lib/python/test/test_eof.py
parent6c1b42188259a6f1636cd15a9570b18af03e2dbb (diff)
remove python test cases
Diffstat (limited to 'sys/lib/python/test/test_eof.py')
-rw-r--r--sys/lib/python/test/test_eof.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/sys/lib/python/test/test_eof.py b/sys/lib/python/test/test_eof.py
deleted file mode 100644
index aae35182b..000000000
--- a/sys/lib/python/test/test_eof.py
+++ /dev/null
@@ -1,32 +0,0 @@
-#! /usr/bin/env python
-"""test script for a few new invalid token catches"""
-
-import os
-import unittest
-from test import test_support
-
-class EOFTestCase(unittest.TestCase):
- def test_EOFC(self):
- expect = "EOL while scanning single-quoted string (<string>, line 1)"
- try:
- eval("""'this is a test\
- """)
- except SyntaxError, msg:
- self.assertEqual(str(msg), expect)
- else:
- raise test_support.TestFailed
-
- def test_EOFS(self):
- expect = "EOF while scanning triple-quoted string (<string>, line 1)"
- try:
- eval("""'''this is a test""")
- except SyntaxError, msg:
- self.assertEqual(str(msg), expect)
- else:
- raise test_support.TestFailed
-
-def test_main():
- test_support.run_unittest(EOFTestCase)
-
-if __name__ == "__main__":
- test_main()