From b8436b026a90291ba26afa4f7a2700720b03339f Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 4 May 2011 05:41:33 +0000 Subject: remove python test cases --- sys/lib/python/test/test_eof.py | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 sys/lib/python/test/test_eof.py (limited to 'sys/lib/python/test/test_eof.py') 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 (, 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 (, 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() -- cgit v1.2.3