[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [ooni-probe/master] Don't complain if we fail to delete some files.



commit c392dff592ec8f4cc2c8ab8501308fcf9ab5750c
Author: Arturo Filastò <art@xxxxxxxxx>
Date:   Wed Apr 30 18:18:46 2014 +0200

    Don't complain if we fail to delete some files.
---
 ooni/tests/test_oonicli.py |   12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/ooni/tests/test_oonicli.py b/ooni/tests/test_oonicli.py
index b53b510..edd17c6 100644
--- a/ooni/tests/test_oonicli.py
+++ b/ooni/tests/test_oonicli.py
@@ -1,10 +1,8 @@
 import os
 import sys
 import yaml
-import signal
-import socket
 
-from twisted.internet import base, defer
+from twisted.internet import defer
 from twisted.trial import unittest
 
 from ooni.tests import is_internet_connected
@@ -25,7 +23,7 @@ def verify_header(header):
 def verify_entry(entry):
     assert 'input' in entry
 
-   
+
 class TestRunDirector(unittest.TestCase):
     def setUp(self):
         if not is_internet_connected():
@@ -68,7 +66,7 @@ class TestRunDirector(unittest.TestCase):
             assert 'factor' in entry
             assert 'headers_diff' in entry
             assert 'headers_match' in entry
-        yield self.run_test('blocking/http_requests', 
+        yield self.run_test('blocking/http_requests',
                       ['-u', 'http://torproject.org/'],
                       verify_function)
 
@@ -82,7 +80,7 @@ class TestRunDirector(unittest.TestCase):
             assert 'factor' in entry
             assert 'headers_diff' in entry
             assert 'headers_match' in entry
-        yield self.run_test('blocking/http_requests', 
+        yield self.run_test('blocking/http_requests',
                       ['-f', 'example-input.txt'],
                       verify_function)
 
@@ -114,6 +112,6 @@ class TestRunDirector(unittest.TestCase):
             assert 'request_line_capitalization' in entry['tampering']
             assert 'total' in entry['tampering']
 
-        yield self.run_test('manipulation/http_header_field_manipulation', 
+        yield self.run_test('manipulation/http_header_field_manipulation',
                             ['-b', 'http://64.9.225.221'],
                            verify_function)



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits