Skip to content

Commit 96f0cc3

Browse files
liyanhui1228dhermes
authored andcommitted
Reduce the max tries for logging system tests (#3708)
1 parent 6dc55fd commit 96f0cc3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

logging/nox.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@ def system_tests(session, python_version):
7474
session.run(
7575
'py.test',
7676
'-vvv',
77+
'-s',
7778
'tests/system.py',
7879
*session.posargs,
79-
success_codes=range(0, 100),
80+
success_codes=range(0, 100)
8081
)
8182

8283

logging/tests/system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def setUp(self):
116116
self._handlers_cache = logging.getLogger().handlers[:]
117117

118118
def tearDown(self):
119-
retry = RetryErrors(NotFound, max_tries=10)
119+
retry = RetryErrors(NotFound, max_tries=9)
120120
for doomed in self.to_delete:
121121
retry(doomed.delete)()
122122
logging.getLogger().handlers = self._handlers_cache[:]

0 commit comments

Comments
 (0)