From 64b01cc07674773b32d96f30a84cb39ef6121edf Mon Sep 17 00:00:00 2001 From: George Edward Bulmer Date: Sat, 24 Mar 2018 21:10:23 +0000 Subject: [PATCH] Remove extraneous part --- tests/unit/browser/test_adblock.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/unit/browser/test_adblock.py b/tests/unit/browser/test_adblock.py index 573ac3ad8..464ae87bd 100644 --- a/tests/unit/browser/test_adblock.py +++ b/tests/unit/browser/test_adblock.py @@ -94,7 +94,6 @@ def create_blocklist(directory, blocked_hosts=BLOCKLIST_HOSTS, name: name to give to the blocklist file line_format: 'etc_hosts' --> /etc/hosts format 'one_per_line' --> one host per line format - 'all_on_one_line' --> pathological example with one line 'not_correct' --> Not a correct hosts file format. """ blocklist_file = directory / name @@ -107,8 +106,6 @@ def create_blocklist(directory, blocked_hosts=BLOCKLIST_HOSTS, elif line_format == 'one_per_line': for host in blocked_hosts: blocklist.write(host + '\n') - elif line_format == 'all_on_one_line': - blocklist.write('127.0.0.1 ' + ' '.join(blocked_hosts) + '\n') elif line_format == 'not_correct': for host in blocked_hosts: blocklist.write(host + ' This is not a correct hosts file\n')