equal
deleted
inserted
replaced
169 osenvironb = getattr(os, 'environb', None) |
169 osenvironb = getattr(os, 'environb', None) |
170 if osenvironb is None: |
170 if osenvironb is None: |
171 # Windows lacks os.environb, for instance. A proxy over the real thing |
171 # Windows lacks os.environb, for instance. A proxy over the real thing |
172 # instead of a copy allows the environment to be updated via bytes on |
172 # instead of a copy allows the environment to be updated via bytes on |
173 # all platforms. |
173 # all platforms. |
174 class environbytes(object): |
174 class environbytes: |
175 def __init__(self, strenv): |
175 def __init__(self, strenv): |
176 self.__len__ = strenv.__len__ |
176 self.__len__ = strenv.__len__ |
177 self.clear = strenv.clear |
177 self.clear = strenv.clear |
178 self._strenv = strenv |
178 self._strenv = strenv |
179 |
179 |
2981 return perf[f] |
2981 return perf[f] |
2982 |
2982 |
2983 testdescs.sort(key=sortkey) |
2983 testdescs.sort(key=sortkey) |
2984 |
2984 |
2985 |
2985 |
2986 class TestRunner(object): |
2986 class TestRunner: |
2987 """Holds context for executing tests. |
2987 """Holds context for executing tests. |
2988 |
2988 |
2989 Tests rely on a lot of state. This object holds it for them. |
2989 Tests rely on a lot of state. This object holds it for them. |
2990 """ |
2990 """ |
2991 |
2991 |