Closed sloria closed 9 years ago
@sloria mind checking out the issue24
branch and see if that fixes your problem? I tried and it works for me.
@alfredodeza Running Pytest class
now works correctly, but Pytest method
seems to have been broken. Here is the test class I was using: https://github.com/marshmallow-code/marshmallow/blob/7826ae0d4813772dd79a876e99cf816cb2b22642/tests/test_schema.py#L1935-2033
@sloria sorry about that, mind trying it again? I think this is good to go now.
@alfredodeza Yep, seems to be working. Thanks!
FYI, in case @alfredodeza ever has a regression with this issue or something similar, using nested classes in py.test is not supported. Here is a line from a chat I had with one of the devs:
2014 Feb 26 14:03:41
SpaghettiCat_: dont use nested classes, they dont propagate data propperly - and its not supported
Test classes with inner classes fail to run.
The following code reproduces the problem:
Running either
Pytest class
orPytest method
results in an error:I am using the latest version of pytest.vim and pytest 2.6.3.