[TIP] excluding test modules based on python version

Chris Withers chris at withers.org
Thu Jul 20 23:38:25 PDT 2017

Hi Guys,

I'd like to write some tests for a package that I maintain using some 
Python 3 - only syntax, type annotations in this case.

How can I tell pytest or nose to ignore that file, but only when running 
under Python 2?



More information about the testing-in-python mailing list