/usr/lib/pypy/dist-packages/flaky/names.py is in pypy-flaky 3.1.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | # coding: utf-8
from __future__ import unicode_literals
class FlakyNames(object):
"""
Names of flaky attributes that will be added to flaky tests
"""
CURRENT_ERRORS = '_flaky_current_errors'
CURRENT_RUNS = '_flaky_current_runs'
CURRENT_PASSES = '_flaky_current_passes'
MAX_RUNS = '_flaky_max_runs'
MIN_PASSES = '_flaky_min_passes'
RERUN_FILTER = '_flaky_rerun_filter'
def __init__(self):
super(FlakyNames, self).__init__()
def items(self):
return (
self.CURRENT_ERRORS,
self.CURRENT_PASSES,
self.CURRENT_RUNS,
self.MAX_RUNS,
self.MIN_PASSES,
self.RERUN_FILTER,
)
def __iter__(self):
for attr in self.items():
yield attr
|