diff options
| author | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 12:47:35 +0100 |
|---|---|---|
| committer | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 12:47:35 +0100 |
| commit | fbd07d8a7cf88daf5d821601578d2f7bc1c92928 (patch) | |
| tree | 85154672d76bd72b10b6277a5189e1b6587ae11a /tests/test_auth | |
| parent | 674ae7718bc06a8b8c8b658075bf82c8198fb632 (diff) | |
| download | paste-fbd07d8a7cf88daf5d821601578d2f7bc1c92928.tar.gz | |
Python 3: Replace "except Exception, exc" with "except Exception as exc:"
Diffstat (limited to 'tests/test_auth')
| -rw-r--r-- | tests/test_auth/test_auth_digest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_auth/test_auth_digest.py b/tests/test_auth/test_auth_digest.py index 55f953d..a821720 100644 --- a/tests/test_auth/test_auth_digest.py +++ b/tests/test_auth/test_auth_digest.py @@ -82,7 +82,7 @@ if os.environ.get("TEST_SOCKET",""): try: authfetch('bing','wrong') assert False, "this should raise an exception" - except urllib2.HTTPError, e: + except HTTPError as e: assert e.code == 401 def test_shutdown(): |
