Blob Blame History Raw
# HG changeset patch
# User tk0miya <i.tkomiya@gmail.com>
# Date 1424526659 -32400
# Node ID c1f2ed5947a1e93291f5860e4e30cee098bd635d
# Parent  d7797efa44c678111dc78fb7d4791aca6118c4fd
Drop test_pep8.py (replaced by flake8)

diff --git a/src/actdiag/tests/test_pep8.py b/src/actdiag/tests/test_pep8.py
deleted file mode 100644
--- a/src/actdiag/tests/test_pep8.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# -*- coding: utf-8 -*-
-
-from __future__ import print_function
-import os
-import sys
-import pep8
-
-CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
-BASE_DIR = os.path.dirname(CURRENT_DIR)
-
-
-def test_pep8():
-    arglist = [['statistics', True],
-               ['show-source', True],
-               ['repeat', True],
-               ['paths', [BASE_DIR]]]
-
-    pep8style = pep8.StyleGuide(arglist, parse_argv=False, config_file=True)
-    options = pep8style.options
-    if options.doctest:
-        import doctest
-        fail_d, done_d = doctest.testmod(report=False, verbose=options.verbose)
-        fail_s, done_s = pep8.selftest(options)
-        count_failed = fail_s + fail_d
-        if not options.quiet:
-            count_passed = done_d + done_s - count_failed
-            print("%d passed and %d failed." % (count_passed, count_failed))
-            if count_failed:
-                print("Test failed.")
-            else:
-                print("Test passed.")
-        if count_failed:
-            sys.exit(1)
-    if options.testsuite:
-        pep8.init_tests(pep8style)
-    report = pep8style.check_files()
-    if options.statistics:
-        report.print_statistics()
-    if options.benchmark:
-        report.print_benchmark()
-    if options.testsuite and not options.quiet:
-        report.print_results()
-    if report.total_errors:
-        if options.count:
-            sys.stderr.write(str(report.total_errors) + '\n')
-        # sys.exit(1)
-
-    # reporting errors (additional summary)
-    errors = report.get_count('E')
-    warnings = report.get_count('W')
-    message = 'pep8: %d errors / %d warnings' % (errors, warnings)
-    print(message)
-    assert report.total_errors == 0, message