From: Éric Araujo Date: Sat, 20 Aug 2011 05:25:39 +0000 (+0200) Subject: Dedent example in docstring X-Git-Tag: v3.2.3rc1~632^2^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e1e1331a493385a65d4535453fce6a5ef8bd12e2;p=thirdparty%2FPython%2Fcpython.git Dedent example in docstring --- diff --git a/Lib/distutils/tests/support.py b/Lib/distutils/tests/support.py index 0e33827fe82c..81289db4a1aa 100644 --- a/Lib/distutils/tests/support.py +++ b/Lib/distutils/tests/support.py @@ -136,9 +136,9 @@ def copy_xxmodule_c(directory): Example use: - def test_compile(self): - copy_xxmodule_c(self.tmpdir) - self.assertIn('xxmodule.c', os.listdir(self.tmpdir) + def test_compile(self): + copy_xxmodule_c(self.tmpdir) + self.assertIn('xxmodule.c', os.listdir(self.tmpdir) If the source file can be found, it will be copied to *directory*. If not, the test will be skipped. Errors during copy are not caught.