diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2010-06-18 21:08:11 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2010-06-18 21:08:11 -0400 |
commit | 9f323147ddf875ce158bd3f1792b69c4004b7caa (patch) | |
tree | 9aad289eb129d6f21718cdd10e3598a6c6e894a7 /test/test_oddball.py | |
parent | 2d939aec11b6d75b336c3e39cd53e221b40d854b (diff) | |
download | python-coveragepy-git-9f323147ddf875ce158bd3f1792b69c4004b7caa.tar.gz |
All tests now use underscore names instead of some having camelCase names.
Diffstat (limited to 'test/test_oddball.py')
-rw-r--r-- | test/test_oddball.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_oddball.py b/test/test_oddball.py index 7d8084ae..33b4be9d 100644 --- a/test/test_oddball.py +++ b/test/test_oddball.py @@ -10,7 +10,7 @@ import osinfo class ThreadingTest(CoverageTest): """Tests of the threading support.""" - def testThreading(self): + def test_threading(self): self.check_coverage("""\ import time, threading @@ -34,7 +34,7 @@ class ThreadingTest(CoverageTest): class RecursionTest(CoverageTest): """Check what happens when recursive code gets near limits.""" - def testShortRecursion(self): + def test_short_recursion(self): # We can definitely get close to 500 stack frames. self.check_coverage("""\ def recur(n): @@ -47,7 +47,7 @@ class RecursionTest(CoverageTest): """, [1,2,3,5,7], "") - def testLongRecursion(self): + def test_long_recursion(self): # We can't finish a very deep recursion, but we don't crash. self.assertRaises(RuntimeError, self.check_coverage, """\ @@ -98,7 +98,7 @@ class MemoryLeakTest(CoverageTest): class PyexpatTest(CoverageTest): """Pyexpat screws up tracing. Make sure we've counter-defended properly.""" - def testPyexpat(self): + def test_pyexpat(self): # pyexpat calls the trace function explicitly (inexplicably), and does # it wrong for exceptions. Parsing a DOCTYPE for some reason throws # an exception internally, and triggers its wrong behavior. This test @@ -146,7 +146,7 @@ class ExceptionTest(CoverageTest): in the trace function. """ - def testException(self): + def test_exception(self): # Python 2.3's trace function doesn't get called with "return" if the # scope is exiting due to an exception. This confounds our trace # function which relies on scope announcements to track which files to @@ -261,7 +261,7 @@ if sys.version_info >= (2, 5): # copy without the monkeypatch. del sys.modules['doctest'] - def testDoctest(self): + def test_doctest(self): self.check_coverage('''\ def return_arg_or_void(arg): """If <arg> is None, return "Void"; otherwise return <arg> |