diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-10-26 13:50:50 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-10-26 13:50:50 (GMT) |
| commit | e46ef289e142982d7bd592faa7b0f85470364c01 (patch) | |
| tree | cda253e03788f7db0a7cdcd05662f66b4455e298 /src/python/stdlib/test/test_eof.py | |
| parent | d0d0d62bbcbb5c3417f8cba419c83bac192ea985 (diff) | |
| download | powder-e46ef289e142982d7bd592faa7b0f85470364c01.zip powder-e46ef289e142982d7bd592faa7b0f85470364c01.tar.gz | |
Remove Python console stuff
Diffstat (limited to 'src/python/stdlib/test/test_eof.py')
| -rw-r--r-- | src/python/stdlib/test/test_eof.py | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/python/stdlib/test/test_eof.py b/src/python/stdlib/test/test_eof.py deleted file mode 100644 index 763917f..0000000 --- a/src/python/stdlib/test/test_eof.py +++ /dev/null @@ -1,32 +0,0 @@ -#! /usr/bin/env python -"""test script for a few new invalid token catches""" - -import unittest -from test import test_support - -class EOFTestCase(unittest.TestCase): - def test_EOFC(self): - expect = "EOL while scanning string literal (<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 literal " - "(<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() |
