-indentation, code cleanup
[oweals/gnunet.git] / src / integration-tests / test_integration_connection_values_tcp_udp_http.py.in
index 69184a2e9a8de80173fe63151e8e8f37bf79c6e1..4e9e72e4e8aae91deac324f7b8b5eaf2bd987ea6 100755 (executable)
@@ -30,13 +30,16 @@ import subprocess
 import re
 import shutil
 import time
-import pexpect
 from gnunet_testing import Peer
 from gnunet_testing import Test
 from gnunet_testing import Check
 from gnunet_testing import Condition
 from gnunet_testing import * 
  
+if os.name == "nt":
+  tmp = os.getenv ("TEMP")
+else:
+  tmp = "/tmp"
 
 #definitions
 
@@ -46,10 +49,7 @@ check_timeout = 180
 
 
 def cleanup ():
-       if os.name == "nt":
-           shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_normal_client"), True)
-       else:
-           shutil.rmtree ("/tmp/c_normal_client/", True)
+    shutil.rmtree (os.path.join (tmp, "c_normal_client"), True)
 
 
 def success_cont (check):