Apply suggestions from code review

Co-Authored-By: nicoddemus <nicoddemus@gmail.com>
This commit is contained in:
Daniel Hahler 2019-03-03 11:20:00 -03:00 committed by GitHub
parent 6a2d122a50
commit c334adc78f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -566,11 +566,11 @@ class TestRequestBasic(object):
""" """
Issue #1895 Issue #1895
`test_inner` requests `inner` fixture, which in turns requests `resource` `test_inner` requests `inner` fixture, which in turn requests `resource`
using getfixturevalue. `test_func` then requests `resource`. using `getfixturevalue`. `test_func` then requests `resource`.
`resource` is teardown before `inner` because the fixture mechanism won't consider `resource` is teardown before `inner` because the fixture mechanism won't consider
`inner` dependent on `resource` when it is get via `getfixturevalue`: `test_func` `inner` dependent on `resource` when it is used via `getfixturevalue`: `test_func`
will then cause the `resource`'s finalizer to be called first because of this. will then cause the `resource`'s finalizer to be called first because of this.
""" """
testdir.makepyfile( testdir.makepyfile(