[New-bugs-announce] [issue25721] Fix pybench always_display error

Florin Papa report at bugs.python.org
Tue Nov 24 07:06:23 EST 2015

New submission from Florin Papa:

Hi all,

This is Florin Papa from the Server Languages Optimizations Team at Intel Corporation.

The patch submitted here solves a crash occurring on Python 2.7 after running pybench from perf.py (python perf.py -r -b pybench base_python modified_python). The error appears when trying to display the results of the run because the PyBenchBenchmarkResult class does not include the attribute "always_display".

Here is the error message received:
File "../benchmarks/perf.py", line 2574, in main
    if result.always_display:
AttributeError: 'PyBenchBenchmarkResult' object has no attribute 'always_display'

To apply the patch please follow these steps:

hg clone https://hg.python.org/benchmarks
cd benchmarks/
copy fix_pybench_results.patch to the current directory
hg import --no-commit fix_pybench_results.patch

Thank you,
Florin Papa

components: Benchmarks
messages: 255262
nosy: brett.cannon, florin.papa, pitrou
priority: normal
severity: normal
status: open
title: Fix pybench always_display error
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list