Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Commit

Permalink
Update https_everywhere_checker/rules.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Pasu Chan Chak Shing committed Feb 18, 2018
1 parent 2e3e2c1 commit c18d192
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/rules/src/https_everywhere_checker/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,11 @@ def _determineTestApplication(self):
self.test_application_problems = []

# check for duplicated test urls
for test in self.tests:
if self.tests.count(test) > 1:
self.test_application_problems.append("%s: Duplicated test URL found %s" % (
self.filename, test.url))
if len(self.tests) != len(set(self.tests)):
for test in self.tests:
if self.tests.count(test) > 1:
self.test_application_problems.append("%s: Duplicated test URL found %s" % (
self.filename, test.url))

for test in self.tests:
applies = self.whatApplies(test.url)
Expand Down

0 comments on commit c18d192

Please sign in to comment.