Blob Blame History Raw
From a642a833e31a6bd1e71dc2045a16e494775b35e6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Pokorn=C3=BD?= <jpokorny@redhat.com>
Date: Thu, 12 Jul 2018 18:58:32 +0200
Subject: [PATCH] test: do not mix tabs with spaces in Python code
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Beside being matter of a good style, it's also forbidden inside
a single, non-delimited block in Python 3.

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
---
 test/servertests.py | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/test/servertests.py b/test/servertests.py
index 39a6ffc..71e808e 100644
--- a/test/servertests.py
+++ b/test/servertests.py
@@ -51,8 +51,8 @@ class ServerTests(ServerTestEnvironment):
                            config_text=self.working_config)
 
     def test_missing_quotes(self):
-	# quotes no longer required
-	return True
+        # quotes no longer required
+        return True
         orig_lines = self.working_config.split("\n")
         for i in xrange(len(orig_lines)):
             new_lines = copy.copy(orig_lines)
@@ -97,8 +97,8 @@ class ServerTests(ServerTestEnvironment):
                            expected_exitcode=None, expected_daemon=True)
 
     def test_missing_transport(self):
-	# UDP is default -- TODO?
-	return True
+        # UDP is default -- TODO?
+        return True
         config = re.sub('transport=.+\n', '', self.typical_config)
         (pid, ret, stdout, stderr, runner) = \
             self.run_booth(config_text=config, expected_exitcode=1, expected_daemon=False)
@@ -141,10 +141,10 @@ class ServerTests(ServerTestEnvironment):
             self.assertRegexpMatches(stderr, 'ticket name "' + ticket + '" invalid')
 
     def test_unreachable_peer(self):
-	# what should this test do? daemon not expected, but no exitcode either?
-	# booth would now just run, and try to reach that peer...
-	# TCP reachability is not required during startup anymore.
-	return True
+        # what should this test do? daemon not expected, but no exitcode either?
+        # booth would now just run, and try to reach that peer...
+        # TCP reachability is not required during startup anymore.
+        return True
         config = re.sub('#(.+147.+)', lambda m: m.group(1), self.working_config)
         self.run_booth(config_text=config,
                        expected_exitcode=None, expected_daemon=False)
-- 
2.18.0.rc2