summaryrefslogtreecommitdiffstats
path: root/tests/test_main.py
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith.r@gmail.com>2015-10-23 02:49:20 -0700
committerAmjith Ramanujam <amjith.r@gmail.com>2015-10-23 02:49:20 -0700
commitcc7b9d2d56ea453a06f2dcf1ffff320f9b8c47a5 (patch)
treecb1f54b56957ae38555b5cacb4b34f919681e2ad /tests/test_main.py
parentd9c62b0925023ce3f255113dd22d615c94a71a05 (diff)
Make setproctitle optional in Windows
Diffstat (limited to 'tests/test_main.py')
-rw-r--r--tests/test_main.py3
1 files changed, 3 insertions, 0 deletions
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()