Skip to content
Snippets Groups Projects
Commit 9ec284cc authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fix tests so that they won't hang on Travis

parent 6d4530fe
No related branches found
No related tags found
No related merge requests found
......@@ -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('cat /proc/meminfo', shell=True, timeout=3)
self.assertIn(b'MemTotal', output)
output = call_and_return_stdout('ls /', shell=True, timeout=3)
self.assertIn(b'usr', 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', timeout=3)
self.assertIn('MemTotal', output)
output = call_and_return_stdout('ls /', shell=True, encoding='utf8', timeout=3)
self.assertIn('usr', output)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment