diff options
author | Gustavo Niemeyer <gustavo@niemeyer.net> | 2007-11-24 00:26:54 -0200 |
---|---|---|
committer | Gustavo Niemeyer <gustavo@niemeyer.net> | 2007-11-24 00:26:54 -0200 |
commit | 06eb72f4966e8ca4e5c10e4880562923d83b5179 (patch) | |
tree | d1e798f306557ad0c8e9ded90f87c42f4ff40f2c /mocker.py | |
parent | 463a9a33ac6c07b2bfbf99cb4ae70e4084d88bc5 (diff) | |
download | mocker-06eb72f4966e8ca4e5c10e4880562923d83b5179.tar.gz |
Break the import of sets for Python 2.3 and add pragma: nocover
to prevent it being seen as an uncovered statement in Python 2.4+.
Diffstat (limited to 'mocker.py')
-rw-r--r-- | mocker.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -14,8 +14,8 @@ import os import gc -# That's a single line to prevent breaking coverage tests in 2.4+. -if sys.version_info < (2, 4): from sets import Set as set +if sys.version_info < (2, 4): + from sets import Set as set # pragma: nocover __all__ = ["Mocker", "expect", "IS", "CONTAINS", "IN", "ANY", "ARGS", "KWARGS"] |