From cc7b9d2d56ea453a06f2dcf1ffff320f9b8c47a5 Mon Sep 17 00:00:00 2001 From: Amjith Ramanujam Date: Fri, 23 Oct 2015 02:49:20 -0700 Subject: Make setproctitle optional in Windows --- tests/test_main.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/test_main.py') diff --git a/tests/test_main.py b/tests/test_main.py index efc5aa25..35221fdb 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -1,4 +1,5 @@ import pytest +import platform from pgcli.main import need_completion_refresh, obfuscate_process_password @@ -9,6 +10,8 @@ from pgcli.main import need_completion_refresh, obfuscate_process_password def test_need_completion_refresh(sql): assert need_completion_refresh(sql) +@pytest.mark.skipif(platform.system() == 'Windows', + reason='Not applicable in windows') def test_obfuscate_process_password(): import setproctitle original_title = setproctitle.getproctitle() -- cgit v1.2.3