diff options
author | Daniel Wagner-Hall <dawagner@gmail.com> | 2020-03-24 18:26:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-24 13:26:55 -0500 |
commit | 963a6245194692440dc3396b254925738405531f (patch) | |
tree | 7b66680a5b7c5984eb14235dc06440c49ca3ec75 /pyparsing/testing.py | |
parent | eec1d575a2f55193fdd6d08d0df75b93783041e3 (diff) | |
download | pyparsing-git-963a6245194692440dc3396b254925738405531f.tar.gz |
Don't import unittest in testing.py (#196)
This import is currently unused in the file.
I'm looking at optimising start-up times of a project I work on, and
importing pyparsing currently takes about 82ms, which is quite a lot for
my domain. Just not importing `unittest` shaves 14ms off of that import
time.
Diffstat (limited to 'pyparsing/testing.py')
-rw-r--r-- | pyparsing/testing.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/pyparsing/testing.py b/pyparsing/testing.py index 201b6d5..756d500 100644 --- a/pyparsing/testing.py +++ b/pyparsing/testing.py @@ -1,7 +1,6 @@ # testing.py from contextlib import contextmanager -import unittest from pyparsing.core import ( ParserElement, |