Skip to content

Commit 82c1a02

Browse files
authored
Merge branch 'master' into ayfif
2 parents d654790 + f63d2b6 commit 82c1a02

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

testing/test_basic.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,13 @@ def assert_outcomes(run_result, outcomes):
2727
except ValueError:
2828
assert False, formatted_output
2929

30-
normalized_outcomes = {
30+
normalized_result_outcomes = {
3131
force_plural(name): outcome
3232
for name, outcome in result_outcomes.items()
33-
# TODO: do we really only want to check the specified outcomes?
34-
if force_plural(name) in outcomes
33+
if name != "seconds"
3534
}
3635

37-
assert normalized_outcomes == outcomes
38-
39-
# for name, value in outcomes.items():
40-
# assert normalized_outcomes.get(name) == value, formatted_output
36+
assert normalized_result_outcomes == outcomes, formatted_output
4137

4238

4339
def format_run_result_output_for_assert(run_result):
@@ -346,6 +342,12 @@ async def test_succeed(foo):
346342

347343
@skip_if_no_async_await()
348344
def test_async_fixture(testdir, cmd_opts):
345+
pytest_ini_file = """
346+
[pytest]
347+
markers =
348+
redgreenblue
349+
"""
350+
testdir.makefile('.ini', pytest=pytest_ini_file)
349351
test_file = """
350352
from twisted.internet import reactor, defer
351353
import pytest

0 commit comments

Comments
 (0)