Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #63 from TheTorProject/clean-test-print-statements
Browse files Browse the repository at this point in the history
Clean noisy print statements from tests
  • Loading branch information
aagbsn committed Jan 23, 2018
2 parents fc9d538 + d329595 commit b042d04
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion bwscanner/partition_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ def start(self):
def pop():
try:
route = self.circuits.next()
print self.serialize_route(route)
self.build_circuit(route)
except StopIteration:
self.stop()
Expand Down
8 changes: 0 additions & 8 deletions test/test_detect_partitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@ def test_shuffle_generator1(self):
prng_seed = hashlib.pbkdf2_hmac('sha256', consensus_hash, shared_secret, iterations=1)
all_partitions = []
for partition_id in range(partitions):
print "partition %d" % partition_id
partition = [circuit for circuit in
lazy2HopCircuitGenerator(relays, partition_id, partitions, prng_seed)]
for c in partition:
print c
print "partition size %d" % len(partition)
all_partitions += partition
print "%d == %d" % (len(all_partitions), (total_relays**2)-total_relays)
self.assertEqual(len(all_partitions), (total_relays**2)-total_relays)

def test_shuffle_generator2(self):
Expand All @@ -53,12 +48,9 @@ def test_shuffle_generator2(self):
prng_seed = hashlib.pbkdf2_hmac('sha256', consensus_hash, shared_secret, iterations=1)
all_partitions = []
for partition_id in range(partitions):
print "partition %d" % partition_id
partition = [circuit for circuit in
lazy2HopCircuitGenerator(relays, partition_id, partitions, prng_seed)]
print "partition size %d" % len(partition)
all_partitions += partition
print "%d == %d" % (len(all_partitions), (total_relays**2)-total_relays)
self.assertEqual(len(all_partitions), (total_relays**2)-total_relays)

def test_permutations(self):
Expand Down

0 comments on commit b042d04

Please sign in to comment.