alfredodeza / pytest.vim

Runs your UnitTests with py.test displaying red/green bars and errors
274 stars 40 forks source link

Fails with spaces in file path #32

Closed alexlafroscia closed 8 years ago

alexlafroscia commented 8 years ago

Apparently pytest.vim has trouble running tests that have a space in the path to the current directory; pytest itself doesn't have this problem if run from the command line.

alfredodeza commented 8 years ago

Give me some time to replicate this and I will get back to you soon. Thanks for reporting this!

alexlafroscia commented 8 years ago

Sure thing :smile:

alfredodeza commented 8 years ago

@alexlafroscia I tried replicating the issue and couldn't. Would you mind setting up something that I can use to replicate the issue? I tried different spaces in the path and was not able to trigger any problems

alexlafroscia commented 8 years ago

Yeah, I'll try to put something together.

alexlafroscia commented 8 years ago

Alright, so if you unzip this file, open main.py in Vim and then run Pytest project, I got an error. If I then check out Pytest session for more details, it says that there is no directory called path/to/location/failing.

http://d.pr/f/15Akp

alfredodeza commented 8 years ago

It seems this only affects project and nothing else. Can you confirm this on your end? I wasn't able to make it break with function/file/class/method

alfredodeza commented 8 years ago

@alexlafroscia I just pushed 66135d96689b5f7a4211f208d0a83bf83b23523e to master, would you mind updating the plugin and see if that fixes it? I tested locally without problems.

alexlafroscia commented 8 years ago

Yup, seems to be fine now! Thanks!