[Python-checkins] r61207 - python/trunk/Lib/test/test_inspect.py

Guido van Rossum guido at python.org
Mon Mar 3 23:42:27 CET 2008


On Mon, Mar 3, 2008 at 12:40 PM, Georg Brandl <g.brandl at gmx.net> wrote:
> christian.heimes schrieb:
>
> > Author: christian.heimes
>  > Date: Mon Mar  3 21:30:29 2008
>  > New Revision: 61207
>  >
>  > Modified:
>  >    python/trunk/Lib/test/test_inspect.py
>  > Log:
>  > 15 -> 16
>  >
>  > Modified: python/trunk/Lib/test/test_inspect.py
>  > ==============================================================================
>  > --- python/trunk/Lib/test/test_inspect.py     (original)
>  > +++ python/trunk/Lib/test/test_inspect.py     Mon Mar  3 21:30:29 2008
>  > @@ -50,11 +50,11 @@
>  >          yield i
>  >
>  >  class TestPredicates(IsTestBase):
>  > -    def test_fifteen(self):
>  > +    def test_sixteen(self):
>  >          count = len(filter(lambda x:x.startswith('is'), dir(inspect)))
>  >          # This test is here for remember you to update Doc/library/inspect.rst
>  >          # which claims there are 15 such functions
>  > -        expected = 15
>  > +        expected = 16
>  >          err_msg = "There are %d (not %d) is* functions" % (count, expected)
>  >          self.assertEqual(count, expected, err_msg)
>
>  You somehow missed the point of this test :)

Maybe the docs shouldn't be so specific?

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-checkins mailing list