From 1a33ee9ebc7930ddf50c56536a9e7e3175e86a3f Mon Sep 17 00:00:00 2001 From: Ivo De Decker Date: Thu, 30 Jan 2020 16:41:16 +0000 Subject: [PATCH] installability/tester.py codestyle fixes --- britney2/installability/tester.py | 7 +++---- tests/test_pycodestyle.py | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/britney2/installability/tester.py b/britney2/installability/tester.py index 4687cc0..26c67af 100644 --- a/britney2/installability/tester.py +++ b/britney2/installability/tester.py @@ -605,9 +605,9 @@ class InstallabilityStats(object): "Requests - is_installable: {is_installable_calls}", "Cache - hits: {cache_hits}, misses: {cache_misses}, drops: {cache_drops}", "Choices - pre-solved: {choice_presolved}, No RP: {choice_resolved_without_restore_point}", - "Backtrace - RP created: {backtrace_restore_point_created}, RP used: {backtrace_restore_point_used}, reached last option: {backtrace_last_option}", - "Solved - installable: {solved_installable}, uninstallable: {solved_uninstallable}, conflicts essential: {conflicts_essential}", - "Eqv - times used: {eqv_table_times_used}, perfect reductions: {eqv_table_reduced_to_one}, failed reductions: {eqv_table_reduced_by_zero}, total no. of alternatives pruned: {eqv_table_total_number_of_alternatives_eliminated}", + "Backtrace - RP created: {backtrace_restore_point_created}, RP used: {backtrace_restore_point_used}, reached last option: {backtrace_last_option}", # nopep8 + "Solved - installable: {solved_installable}, uninstallable: {solved_uninstallable}, conflicts essential: {conflicts_essential}", # nopep8 + "Eqv - times used: {eqv_table_times_used}, perfect reductions: {eqv_table_reduced_to_one}, failed reductions: {eqv_table_reduced_by_zero}, total no. of alternatives pruned: {eqv_table_total_number_of_alternatives_eliminated}", # nopep8 ] return [x.format(**self.__dict__) for x in formats] @@ -667,4 +667,3 @@ class ArchStats(object): self._list_stats('dependency-clauses', sorted_no_dep_edges) self._list_stats('dependency-clause-alternatives', sorted_size_dep_edges, average_per_node=True) self._list_stats('negative-dependency-clauses', sorted_no_con_edges) - diff --git a/tests/test_pycodestyle.py b/tests/test_pycodestyle.py index fed3295..bb36b6e 100644 --- a/tests/test_pycodestyle.py +++ b/tests/test_pycodestyle.py @@ -14,7 +14,7 @@ EXCEPTIONS_BY_FILE = { 'britney2/excuse.py': 0, 'britney2/excusefinder.py': 0, 'britney2/hints.py': 0, - 'britney2/installability/tester.py': 4, + 'britney2/installability/tester.py': 0, 'britney2/policies/__init__.py': 0, 'britney2/policies/policy.py': 0, 'britney2/policies/autopkgtest.py': 0,