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/sample_doctest.py | |
| parent | d0d0d62bbcbb5c3417f8cba419c83bac192ea985 (diff) | |
| download | powder-e46ef289e142982d7bd592faa7b0f85470364c01.zip powder-e46ef289e142982d7bd592faa7b0f85470364c01.tar.gz | |
Remove Python console stuff
Diffstat (limited to 'src/python/stdlib/test/sample_doctest.py')
| -rw-r--r-- | src/python/stdlib/test/sample_doctest.py | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/src/python/stdlib/test/sample_doctest.py b/src/python/stdlib/test/sample_doctest.py deleted file mode 100644 index e5adee0..0000000 --- a/src/python/stdlib/test/sample_doctest.py +++ /dev/null @@ -1,76 +0,0 @@ -"""This is a sample module that doesn't really test anything all that - interesting. - -It simply has a few tests, some of which succeed and some of which fail. - -It's important that the numbers remain constant as another test is -testing the running of these tests. - - ->>> 2+2 -4 -""" - - -def foo(): - """ - - >>> 2+2 - 5 - - >>> 2+2 - 4 - """ - -def bar(): - """ - - >>> 2+2 - 4 - """ - -def test_silly_setup(): - """ - - >>> import test.test_doctest - >>> test.test_doctest.sillySetup - True - """ - -def w_blank(): - """ - >>> if 1: - ... print 'a' - ... print - ... print 'b' - a - <BLANKLINE> - b - """ - -x = 1 -def x_is_one(): - """ - >>> x - 1 - """ - -def y_is_one(): - """ - >>> y - 1 - """ - -__test__ = {'good': """ - >>> 42 - 42 - """, - 'bad': """ - >>> 42 - 666 - """, - } - -def test_suite(): - import doctest - return doctest.DocTestSuite() |
