Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue14764] importlib.test.benchmark broken

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

May 9, 2012, 5:09 AM

Post #1 of 4 (41 views)
Permalink
[issue14764] importlib.test.benchmark broken

New submission from Antoine Pitrou <pitrou [at] free>:

It seems the benchmark script didn't survive the migration:


$ ./python -m importlib.test.benchmark
Measuring imports/second over 1 second, best out of 3
Entire benchmark run should take about 33 seconds
Using <function __import__ at 0x7fdea5b3d7a0> as __import__

sys.modules [ 289195 288128 288050 ] best is 289,195
Built-in module [ 48351 48101 48432 ] best is 48,432
Source writing bytecode: small [ Traceback (most recent call last):
File "/home/antoine/cpython/opt/Lib/importlib/test/benchmark.py", line 30, in bench
total_time += timer.timeit(1)
File "/home/antoine/cpython/opt/Lib/timeit.py", line 190, in timeit
timing = self.inner(it, self.timer)
File "<timeit-src>", line 6, in inner
File "/home/antoine/cpython/opt/Lib/importlib/_bootstrap.py", line 1077, in __import__
module = _gcd_import(name)
File "/home/antoine/cpython/opt/Lib/importlib/_bootstrap.py", line 1024, in _gcd_import
return _find_and_load(name, _gcd_import)
File "/home/antoine/cpython/opt/Lib/importlib/_bootstrap.py", line 974, in _find_and_load
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '__importlib_test_benchmark__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/antoine/cpython/opt/Lib/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/home/antoine/cpython/opt/Lib/runpy.py", line 75, in _run_code
exec(code, run_globals)
File "/home/antoine/cpython/opt/Lib/importlib/test/benchmark.py", line 239, in <module>
main(import_, options)
File "/home/antoine/cpython/opt/Lib/importlib/test/benchmark.py", line 197, in main
for result in benchmark(seconds=seconds, repeat=repeat):
File "/home/antoine/cpython/opt/Lib/importlib/test/benchmark.py", line 108, in source_writing_bytecode
for result in bench(name, cleanup, repeat=repeat, seconds=seconds):
File "/home/antoine/cpython/opt/Lib/importlib/test/benchmark.py", line 32, in bench
cleanup()
File "/home/antoine/cpython/opt/Lib/importlib/test/benchmark.py", line 106, in cleanup
sys.modules.pop(name)
KeyError: '__importlib_test_benchmark__'

----------
components: Library (Lib)
messages: 160281
nosy: brett.cannon, pitrou
priority: low
severity: normal
status: open
title: importlib.test.benchmark broken
versions: Python 3.3

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14764>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 9, 2012, 7:24 AM

Post #2 of 4 (39 views)
Permalink
[issue14764] importlib.test.benchmark broken [In reply to]

Changes by Eric Snow <ericsnowcurrently [at] gmail>:


----------
nosy: +eric.snow

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14764>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 11, 2012, 8:12 AM

Post #3 of 4 (32 views)
Permalink
[issue14764] importlib.test.benchmark broken [In reply to]

Roundup Robot <devnull [at] psf> added the comment:

New changeset e1d0535372d0 by Brett Cannon in branch 'default':
Issue #14764: Update importlib.test.benchmark to work in a world where
http://hg.python.org/cpython/rev/e1d0535372d0

----------
nosy: +python-dev

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14764>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 11, 2012, 8:12 AM

Post #4 of 4 (32 views)
Permalink
[issue14764] importlib.test.benchmark broken [In reply to]

Changes by Brett Cannon <brett [at] python>:


----------
assignee: -> brett.cannon
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14764>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.