From: Zachary Ware Date: Fri, 9 Sep 2016 19:55:14 +0000 (-0700) Subject: Fix running test_tokenize directly X-Git-Tag: v3.6.0b1~180 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a0154c0f0ee38b1b8a05eac181a35c78ca1508f4;p=thirdparty%2FPython%2Fcpython.git Fix running test_tokenize directly --- diff --git a/Lib/test/test_tokenize.py b/Lib/test/test_tokenize.py index 90438e7d3077..77c0423d19e8 100644 --- a/Lib/test/test_tokenize.py +++ b/Lib/test/test_tokenize.py @@ -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()