diff --git a/appveyor.yml b/appveyor.yml index 39ee1f5cf..c0335d406 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -26,7 +26,7 @@ build_script: test_script: - cd c:\pillow - '%PYTHON%\Scripts\pip.exe install nose' -- '%PYTHON%\python.exe test-installed.py' +- '%PYTHON%\python.exe test-installed.py -v -s' matrix: fast_finish: true artifacts: diff --git a/test-installed.py b/test-installed.py index 9beef27aa..c5aff1360 100755 --- a/test-installed.py +++ b/test-installed.py @@ -13,7 +13,10 @@ sys.path.insert(0, os.path.abspath('./Tests')) # if there's no test selected (mostly) choose a working default. # Something is required, because if we import the tests from the local # directory, once again, we've got the non-installed PIL in the way -if len(sys.argv) == 1: +for arg in sys.argv[1:]: + if '.py' in arg: + break +else: sys.argv.extend(glob.glob('Tests/test*.py')) # Make sure that nose doesn't muck with our paths.