summaryrefslogtreecommitdiff
path: root/morphlib/remoteartifactcache_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/remoteartifactcache_tests.py')
-rw-r--r--morphlib/remoteartifactcache_tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/morphlib/remoteartifactcache_tests.py b/morphlib/remoteartifactcache_tests.py
index b7f10450..201cfc50 100644
--- a/morphlib/remoteartifactcache_tests.py
+++ b/morphlib/remoteartifactcache_tests.py
@@ -16,6 +16,7 @@
import StringIO
import unittest
+import urllib2
import morphlib
@@ -76,7 +77,7 @@ class RemoteArtifactCacheTests(unittest.TestCase):
if filename in self.existing_files:
return StringIO.StringIO('%s' % filename)
else:
- raise Exception('foo')
+ raise urllib2.URLError('foo')
def test_sets_server_url(self):
self.assertEqual(self.cache.server_url, self.server_url)