summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tokenize.py
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2016-09-09 19:55:14 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2016-09-09 19:55:14 (GMT)
commita0154c0f0ee38b1b8a05eac181a35c78ca1508f4 (patch)
tree1abbf3394e1c2ec5cda812961f98181ff110b376 /Lib/test/test_tokenize.py
parentc1bd632abf6cc3b0f60e2e2f4587b0f00b7495cd (diff)
downloadcpython-a0154c0f0ee38b1b8a05eac181a35c78ca1508f4.zip
cpython-a0154c0f0ee38b1b8a05eac181a35c78ca1508f4.tar.gz
cpython-a0154c0f0ee38b1b8a05eac181a35c78ca1508f4.tar.bz2
Fix running test_tokenize directly
Diffstat (limited to 'Lib/test/test_tokenize.py')
-rw-r--r--Lib/test/test_tokenize.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_tokenize.py b/Lib/test/test_tokenize.py
index 90438e7..77c0423 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()