~pythonregexp2.7/python/issue2636

« back to all changes in this revision

Viewing changes to Lib/test/test_inspect.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-06-09 14:36:32 UTC
  • mfrom: (39021.1.402 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080609143632-wwwkx92u1t5l7yd3
Merged in changes from the latest python source snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
185
185
        self.assertEqual(inspect.getdoc(git.abuse),
186
186
                         'Another\n\ndocstring\n\ncontaining\n\ntabs')
187
187
 
 
188
    def test_cleandoc(self):
 
189
        self.assertEqual(inspect.cleandoc('An\n    indented\n    docstring.'),
 
190
                         'An\nindented\ndocstring.')
 
191
 
188
192
    def test_getcomments(self):
189
193
        self.assertEqual(inspect.getcomments(mod), '# line 1\n')
190
194
        self.assertEqual(inspect.getcomments(mod.StupidGit), '# line 20\n')