diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-04 11:55:34 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-04 11:55:34 -0500 |
| commit | 0a8b9a3152c736d8e2f8a01f5a9547546b907de7 (patch) | |
| tree | 7125db39863da32601a8c459c1e56347bbf59f86 /pkg_resources | |
| parent | 9d6a6e5927ae0e67164383e419f3145fc154467e (diff) | |
| download | python-setuptools-git-0a8b9a3152c736d8e2f8a01f5a9547546b907de7.tar.gz | |
And again in doctest
Diffstat (limited to 'pkg_resources')
| -rw-r--r-- | pkg_resources/api_tests.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg_resources/api_tests.txt b/pkg_resources/api_tests.txt index 50e04b87..a6c25a37 100644 --- a/pkg_resources/api_tests.txt +++ b/pkg_resources/api_tests.txt @@ -210,8 +210,7 @@ working set triggers a ``pkg_resources.VersionConflict`` error: >>> try: ... ws.find(Requirement.parse("Bar==1.0")) - ... except pkg_resources.VersionConflict: - ... exc = sys.exc_info()[1] + ... except pkg_resources.VersionConflict as exc: ... print(str(exc)) ... else: ... raise AssertionError("VersionConflict was not raised") |
