diff options
author | Georg Brandl <georg@python.org> | 2007-08-30 10:38:56 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-08-30 10:38:56 (GMT) |
commit | 27d9ee32abac7a580b1ffc980522535bdd20f09b (patch) | |
tree | 5ffc48061df1fcdb8e5b9792cf227d7530a28bf9 /Lib/pipes.py | |
parent | f11ed159f3c580c7b4d07dd1ce1d385f0efd9e09 (diff) | |
download | cpython-27d9ee32abac7a580b1ffc980522535bdd20f09b.zip cpython-27d9ee32abac7a580b1ffc980522535bdd20f09b.tar.gz cpython-27d9ee32abac7a580b1ffc980522535bdd20f09b.tar.bz2 |
Patch #1680959: add test suite for pipes module.
Diffstat (limited to 'Lib/pipes.py')
-rw-r--r-- | Lib/pipes.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/Lib/pipes.py b/Lib/pipes.py index 295d9c8..6dcc997 100644 --- a/Lib/pipes.py +++ b/Lib/pipes.py @@ -60,7 +60,6 @@ For an example, see the function test() at the end of the file. import re - import os import tempfile import string @@ -281,18 +280,3 @@ def quote(file): c = '\\' + c res = res + c return '"' + res + '"' - - -# Small test program and example - -def test(): - print 'Testing...' - t = Template() - t.append('togif $IN $OUT', 'ff') - t.append('giftoppm', '--') - t.append('ppmtogif >$OUT', '-f') - t.append('fromgif $IN $OUT', 'ff') - t.debug(1) - FILE = '/usr/local/images/rgb/rogues/guido.rgb' - t.copy(FILE, '@temp') - print 'Done.' |