]> granicus.if.org Git - python/commit
Refactor a couple inspect module tests to remove duplicate code
authorJean-Paul Calderone <exarkun@divmod.com>
Sat, 10 Apr 2010 19:59:28 +0000 (19:59 +0000)
committerJean-Paul Calderone <exarkun@divmod.com>
Sat, 10 Apr 2010 19:59:28 +0000 (19:59 +0000)
commitb60ee469cd1cd9c51f319fc32fa37987581605d1
treec034aa60e83ea9dd1ba099e3451b748e7537d62a
parentbb66973afb4bb3056709181f320d97074e4db074
Refactor a couple inspect module tests to remove duplicate code

The test_classify_oldstyle and test_classify_newstyle methods of
test.test_inspect.TestClassesAndFunctions were previously almost
identical (aside from irrelevant whitespace and one semantic
difference).  They now share a single helper.

Fixes issue #8363.
Lib/test/test_inspect.py