We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67353b0 commit 527c5f5Copy full SHA for 527c5f5
nox.py
@@ -184,7 +184,13 @@ def _session_tests(session, sample):
184
if os.path.exists(os.path.join(sample, 'requirements.txt')):
185
session.install('-r', 'requirements.txt')
186
187
- session.run('pytest', *(PYTEST_COMMON_ARGS + session.posargs))
+ session.run(
188
+ 'pytest',
189
+ *(PYTEST_COMMON_ARGS + session.posargs),
190
+ # Pytest will return 5 when no tests are collected. This can happen
191
+ # on travis where slow and flaky tests are excluded.
192
+ # See http://doc.pytest.org/en/latest/_modules/_pytest/main.html
193
+ success_codes=[0, 5])
194
195
196
@nox.parametrize('sample', GAE_STANDARD_SAMPLES)
0 commit comments