From e266d28495c36a40afe2204d86794e690a982035 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Wed, 29 Apr 2020 16:14:13 +0200
Subject: [PATCH] fix test

---
 tests/test_processes.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/tests/test_processes.py b/tests/test_processes.py
index f4bfc327..13dac48d 100644
--- a/tests/test_processes.py
+++ b/tests/test_processes.py
@@ -6,8 +6,10 @@ from satella.processes import call_and_return_stdout
 class TestProcesses(unittest.TestCase):
     @unittest.skipIf('win' in sys.platform, 'Running on Windows')
     def test_return_stdout(self):
-        output = call_and_return_stdout('cat /proc/meminfo', shell=True, encoding='utf8')
-        self.assertIn('MemTotal', output)
-
         output = call_and_return_stdout('cat /proc/meminfo', shell=True)
         self.assertIn(b'MemTotal', output)
+
+    @unittest.skipIf('win' in sys.platform or sys.version_info.minor < 6, 'Running on Windows or Python 3.5')
+    def test_return_encoding(self):
+        output = call_and_return_stdout('cat /proc/meminfo', shell=True, encoding='utf8')
+        self.assertIn('MemTotal', output)
-- 
GitLab