Return proper exit code from pytest.main()
Merge pull request #170 from oxtopus/NPC-302

Return proper exit code from pytest.main()
Merge branch 'master' into python27-support