Skip to content

Commit

Permalink
Merge pull request #75 from xiongchiamiov/fix-python-26-support
Browse files Browse the repository at this point in the history
Fix Python 2.6 support
  • Loading branch information
ioerror committed Mar 15, 2014
2 parents 85e761d + 125e16e commit 623f4de
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions blockfindertest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import unittest
import os
import shutil
import sys
import tempfile

import blockfinder
Expand Down Expand Up @@ -84,8 +85,11 @@ def test_ipv6_bf(self):


if __name__ == '__main__':
failures = 0
for test_class in [CheckReverseLookup, CheckBlockFinder]:
test_suite = unittest.makeSuite(test_class)
test_runner = unittest.TextTestRunner(verbosity=2)
test_runner.run(test_suite)

results = test_runner.run(test_suite)
failures += len(results.errors)
failures += len(results.failures)
sys.exit(failures)

0 comments on commit 623f4de

Please sign in to comment.