diff options
| author | Ivan Kozik <ivan@ludios.org> | 2023-01-17 04:17:17 +0000 |
|---|---|---|
| committer | Ivan Kozik <ivan@ludios.org> | 2023-01-17 05:07:30 +0000 |
| commit | e31dea3d14e72a445db2c9b22f4ea005c36a5c85 (patch) | |
| tree | c53023d59408a96f1b46fdd9a32551da6d5b88bf /pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch | |
| parent | 768a982bfc9d29a6bd3beb963ed4b054451ce3d0 (diff) | |
python3Packages.parsimonious: disable benchmark tests that may fail
This fixes
```
=================================== FAILURES ===================================
______________________ TestBenchmarks.test_lists_vs_dicts ______________________
self = <parsimonious.tests.test_benchmarks.TestBenchmarks testMethod=test_lists_vs_dicts>
def test_lists_vs_dicts(self):
"""See what's faster at int key lookup: dicts or lists."""
list_time = timeit('item = l[9000]', 'l = [0] * 10000')
dict_time = timeit('item = d[9000]', 'd = {x: 0 for x in range(10000)}')
# Dicts take about 1.6x as long as lists in Python 2.6 and 2.7.
> self.assertTrue(list_time < dict_time, '%s < %s' % (list_time, dict_time))
E AssertionError: False is not true : 0.051286615896970034 < 0.0440241270698607
parsimonious/tests/test_benchmarks.py:16: AssertionError
=========================== short test summary info ============================
FAILED parsimonious/tests/test_benchmarks.py::TestBenchmarks::test_lists_vs_dicts
=================== 1 failed, 82 passed, 2 skipped in 1.19s ====================
```
Diffstat (limited to 'pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch')
0 files changed, 0 insertions, 0 deletions
