]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix running test_tokenize directly
authorZachary Ware <zachary.ware@gmail.com>
Fri, 9 Sep 2016 19:55:14 +0000 (12:55 -0700)
committerZachary Ware <zachary.ware@gmail.com>
Fri, 9 Sep 2016 19:55:14 +0000 (12:55 -0700)
Lib/test/test_tokenize.py

index 90438e7d3077d7d0208b6735a0bce87e9717e1f5..77c0423d19e8818b09417da2e17ef4a1b09f9783 100644 (file)
@@ -3,7 +3,7 @@ from tokenize import (tokenize, _tokenize, untokenize, NUMBER, NAME, OP,
                      STRING, ENDMARKER, ENCODING, tok_name, detect_encoding,
                      open as tokenize_open, Untokenizer)
 from io import BytesIO
-from unittest import TestCase, mock
+from unittest import TestCase, mock, main
 import os
 import token
 
@@ -1564,4 +1564,4 @@ class TestRoundtrip(TestCase):
 
 
 if __name__ == "__main__":
-    unittest.main()
+    main()