From 642006595fec254e5a5123e77cbd2f972fea0248 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:28:01 +0200 Subject: [PATCH] fix tests so that they won't hang on Travis --- tests/test_processes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_processes.py b/tests/test_processes.py index 93c6ca5d..533fcdb3 100644 --- a/tests/test_processes.py +++ b/tests/test_processes.py @@ -6,10 +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('ls /', shell=True, timeout=3) - self.assertIn(b'usr', output) + output = call_and_return_stdout('ls .', shell=True, timeout=3) + self.assertIn(b'requirements.txt', 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('ls /', shell=True, encoding='utf8', timeout=3) - self.assertIn('usr', output) + output = call_and_return_stdout('ls .', shell=True, encoding='utf8', timeout=3) + self.assertIn('requirements.txt', output) -- GitLab