diff options
| author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-02-05 15:34:09 -0500 |
|---|---|---|
| committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-02-05 15:34:09 -0500 |
| commit | b5d60d9c704a18cbfc63717c770ce8794f3cf0f0 (patch) | |
| tree | db9b7788fc0c414d7d9ca94f4e2c6d379dd34f29 | |
| parent | 059e6b838f2b88c56b04aee2ba21f971e76760d1 (diff) | |
| download | cmd2-git-b5d60d9c704a18cbfc63717c770ce8794f3cf0f0.tar.gz | |
Re-ordered test skip condition.
Re-ordered boolean and so it should fail fast on Windows and not try to run the 2nd part which would cause issues.
| -rw-r--r-- | tests/test_cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 6330c8a7..62f03235 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -288,7 +288,7 @@ def test_output_redirection(base_app): os.remove(filename) -@pytest.mark.skipif(getpass.getuser() == 'travis' and sys.platform.startswith('linux'), +@pytest.mark.skipif(sys.platform.startswith('linux') and getpass.getuser() == 'travis', reason="Unit test passes on Ubuntu 16.04 and Debian 8.7, but fails on TravisCI Linux containers") def test_input_redirection(base_app, request): test_dir = os.path.dirname(request.module.__file__) |
