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

Commit 2e3fd39

Browse files
aagbsnDonnchaC
authored andcommitted
Remove noisy print statements from partition tests
1 parent fc9d538 commit 2e3fd39

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

test/test_detect_partitions.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,9 @@ def test_shuffle_generator1(self):
3434
prng_seed = hashlib.pbkdf2_hmac('sha256', consensus_hash, shared_secret, iterations=1)
3535
all_partitions = []
3636
for partition_id in range(partitions):
37-
print "partition %d" % partition_id
3837
partition = [circuit for circuit in
3938
lazy2HopCircuitGenerator(relays, partition_id, partitions, prng_seed)]
40-
for c in partition:
41-
print c
42-
print "partition size %d" % len(partition)
4339
all_partitions += partition
44-
print "%d == %d" % (len(all_partitions), (total_relays**2)-total_relays)
4540
self.assertEqual(len(all_partitions), (total_relays**2)-total_relays)
4641

4742
def test_shuffle_generator2(self):
@@ -53,12 +48,9 @@ def test_shuffle_generator2(self):
5348
prng_seed = hashlib.pbkdf2_hmac('sha256', consensus_hash, shared_secret, iterations=1)
5449
all_partitions = []
5550
for partition_id in range(partitions):
56-
print "partition %d" % partition_id
5751
partition = [circuit for circuit in
5852
lazy2HopCircuitGenerator(relays, partition_id, partitions, prng_seed)]
59-
print "partition size %d" % len(partition)
6053
all_partitions += partition
61-
print "%d == %d" % (len(all_partitions), (total_relays**2)-total_relays)
6254
self.assertEqual(len(all_partitions), (total_relays**2)-total_relays)
6355

6456
def test_permutations(self):

0 commit comments

Comments
 (0)