diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-03-14 22:48:56 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-03-14 22:48:56 (GMT) |
commit | 903d846a69b6a837495c00b26bd4bbcb3835e26f (patch) | |
tree | 56f8509a01dd4e6ce7fb1b0c25d59b38245cb04c /Lib | |
parent | 915d7773e297326cb7ce3ad0ff97b35fe95bafee (diff) | |
download | cpython-903d846a69b6a837495c00b26bd4bbcb3835e26f.zip cpython-903d846a69b6a837495c00b26bd4bbcb3835e26f.tar.gz cpython-903d846a69b6a837495c00b26bd4bbcb3835e26f.tar.bz2 |
Renamed test_hashlib_speed.py to time_hashlib.py.
Since it's never intended that this script be run by
regrtest.py, it shouldn't have been named with a "test_"
prefix to begin with. A consequence is that we shouldn't
see useless:
test_hashlib_speed skipped -- not a unit test (stand alone benchmark)
lines in regrtest output anymore.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/test/regrtest.py | 3 | ||||
-rw-r--r-- | Lib/test/time_hashlib.py (renamed from Lib/test/test_hashlib_speed.py) | 9 |
2 files changed, 2 insertions, 10 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index b4c229a..b850912 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -1136,9 +1136,6 @@ class _ExpectedSkips: s = _expectations[sys.platform] self.expected = set(s.split()) - # this isn't a regularly run unit test, it is always skipped - self.expected.add('test_hashlib_speed') - if not os.path.supports_unicode_filenames: self.expected.add('test_pep277') diff --git a/Lib/test/test_hashlib_speed.py b/Lib/test/time_hashlib.py index c84a62b..1bf707d 100644 --- a/Lib/test/test_hashlib_speed.py +++ b/Lib/test/time_hashlib.py @@ -1,15 +1,14 @@ +# It's intended that this script be run by hand. It runs speed tests on +# hashlib functions; it does not test for correctness. import sys, time import hashlib -from test import test_support def creatorFunc(): raise RuntimeError, "eek, creatorFunc not overridden" - def test_scaled_msg(scale, name): - iterations = 106201/scale * 20 longStr = 'Z'*scale @@ -39,10 +38,6 @@ def test_zero(): -### this 'test' is not normally run. skip it if the test runner finds it -if __name__ != '__main__': - raise test_support.TestSkipped, "not a unit test (stand alone benchmark)" - hName = sys.argv[1] # |