Skip to content

Commit 814c703

Browse files
committed
Only run chardet tests if chardet is not installed
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40529
1 parent 0c8d0de commit 814c703

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_encoding.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ def buildTestSuite():
8686
print "chardet not found, skipping chardet tests"
8787
return testSuite
8888

89-
def main():
90-
buildTestSuite()
91-
unittest.main()
89+
def main():
90+
unittest.main(defaultTest="buildTestSuite")
9291

9392
if __name__ == "__main__":
9493
main()

0 commit comments

Comments
 (0)