From 458120dd40db6b4df55a4e96b650e16798ef06a0 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 3 May 2011 11:25:13 +0000 Subject: add hg and python --- sys/lib/python/test/test_softspace.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 sys/lib/python/test/test_softspace.py (limited to 'sys/lib/python/test/test_softspace.py') diff --git a/sys/lib/python/test/test_softspace.py b/sys/lib/python/test/test_softspace.py new file mode 100644 index 000000000..5405ba3fe --- /dev/null +++ b/sys/lib/python/test/test_softspace.py @@ -0,0 +1,14 @@ +from test import test_support +import StringIO + +# SF bug 480215: softspace confused in nested print +f = StringIO.StringIO() +class C: + def __str__(self): + print >> f, 'a' + return 'b' + +print >> f, C(), 'c ', 'd\t', 'e' +print >> f, 'f', 'g' +# In 2.2 & earlier, this printed ' a\nbc d\te\nf g\n' +test_support.vereq(f.getvalue(), 'a\nb c d\te\nf g\n') -- cgit v1.2.3