Tests: Remove tabnanny

it is not actively useful and takes 70% of the time of the tests
This commit is contained in:
mathieui 2020-12-04 00:20:51 +01:00
parent 56f44dc47d
commit 380f0e4e38

View file

@ -2,9 +2,9 @@ import os
import re import re
import sys import sys
import unittest import unittest
import tabnanny
import compileall import compileall
class TestOverall(unittest.TestCase): class TestOverall(unittest.TestCase):
""" """
@ -18,9 +18,5 @@ class TestOverall(unittest.TestCase):
rx = re.compile('/[.]svn|.*26.*') rx = re.compile('/[.]svn|.*26.*')
self.assertTrue(compileall.compile_dir(src, rx=rx, quiet=True)) self.assertTrue(compileall.compile_dir(src, rx=rx, quiet=True))
def testTabNanny(self):
"""Testing that indentation is consistent"""
self.assertFalse(tabnanny.check('..%sslixmpp' % os.sep))
suite = unittest.TestLoader().loadTestsFromTestCase(TestOverall) suite = unittest.TestLoader().loadTestsFromTestCase(TestOverall)