Marcus Ahlberg
Marcus Ahlberg

Reputation: 1389

Pytest won't accept argument starting with ../../

I have added a custom command line argument --dll but when I supply a path starting with ../../ it doesn't recognize the argument:

# pytest --dll ../../lib.dll
ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --dll

However it works if I type "--dll=../../lib.dll", "--dll ../lib.dll" or put another argument before.

Why is this and is it pytest specific?

I'm running this from Cygwin with Cygwin's python.

Upvotes: 0

Views: 92

Answers (1)

Robert Christie
Robert Christie

Reputation: 20695

On windows, path separators are \ not / -try ..\..\lib.dll

Upvotes: 1

Related Questions