#15198 Report by node saucy covering 1198 tests from 29 modules resulted into 22 errors
Report
- ObsPy Version
- 0.9.2-660-g02fa
- Continuous Integration
- -
- GitHub Pull Request
- -
- Report File
- XML Document
- Total Runtime
- 1106.0 sec
- Report Date/Time
- 2014-06-16 09:24:32
System / Python
- Architecture
- 64bit
- Machine
- x86_64
- Node
- saucy
- Processor
- x86_64
- Python Compiler
- GCC 4.8.1
- Python Implementation
- CPython
- Python Version
- 2.7.5+
- Release
- 3.2.0-4-amd64
- System
- Linux
- Version
- #1 SMP Debian 3.2.57-3+deb7u2
Dependencies
- future
- 0.12.2
- lxml.etree
- 3.2.0
- matplotlib
- 1.2.1
- mock
- 1.0.1
- mpl_toolkits.basemap
- Not Installed
- nose
- 1.3.0
- numpy
- 1.7.1
- scipy
- 0.12.0
- sqlalchemy
- 0.8.2
- suds
- 0.6
Modules (29)
Module | Errors / Failures |
Tracebacks | ||||
---|---|---|---|---|---|---|
obspy.arclink | - | 37 | 31 | 6 | 175.5s | - |
obspy.core | - | 497 | 491 | 6 | 19.7s | - |
obspy.css | - | 3 | 3 | - | 0.3s | - |
obspy.datamark | - | 2 | 2 | - | 0.1s | - |
obspy.db | - | 9 | 9 | - | 0.0s | - |
obspy.earthworm | 3 | 7 | 4 | 3 | 215.4s | 1 2 3 |
obspy.fdsn | 1 | 45 | 45 | - | 75.2s | 4 |
obspy.gse2 | - | 36 | 36 | - | 0.2s | - |
obspy.imaging | - | 37 | 37 | - | 45.6s | - |
obspy.iris | - | 15 | 15 | - | 32.5s | - |
obspy.mseed | - | 80 | 80 | - | 1.9s | - |
obspy.ndk | 1 | 20 | 20 | - | 13.4s | 5 |
obspy.neic | 5 | 5 | 5 | - | 378.7s | 6 7 8 9 10 |
obspy.neries | 12 | 18 | 18 | - | 59.8s | 11 12 13 14 15 16 17 18 19 20 21 22 |
obspy.pde | - | 13 | 13 | - | 1.2s | - |
obspy.realtime | - | 22 | 22 | - | 1.4s | - |
obspy.sac | - | 66 | 66 | - | 0.3s | - |
obspy.seedlink | - | 7 | 4 | 3 | 0.0s | - |
obspy.seg2 | - | 1 | 1 | - | 0.0s | - |
obspy.segy | - | 47 | 47 | - | 1.0s | - |
obspy.seisan | - | 7 | 7 | - | 0.1s | - |
obspy.seishub | - | 17 | 17 | - | 31.7s | - |
obspy.sh | - | 17 | 17 | - | 0.2s | - |
obspy.signal | - | 92 | 92 | - | 41.9s | - |
obspy.station | - | 42 | 31 | 11 | 7.6s | - |
obspy.taup | - | 6 | 6 | - | 0.0s | - |
obspy.wav | - | 8 | 8 | - | 0.0s | - |
obspy.xseed | - | 38 | 38 | - | 2.2s | - |
obspy.y | - | 4 | 4 | - | 0.0s | - |
Summary | 22 | 1198 | 1169 | 29 | 1106.0s | 22 |
Tracebacks (22)
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2201, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.earthworm.__init__ File "/tmp/testrun/git/obspy/earthworm/__init__.py", line 1, in __init__ ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/earthworm/__init__.py", line 21, in obspy.earthworm.__init__ Failed example: response = client.availability("UW", "TUCA", channel="BHZ") Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.earthworm.__init__[2]>", line 1, in <module> response = client.availability("UW", "TUCA", channel="BHZ") File "/tmp/testrun/git/obspy/earthworm/client.py", line 220, in availability response = getMenu(self.host, self.port, timeout=self.timeout) File "/tmp/testrun/git/obspy/earthworm/waveserver.py", line 202, in getMenu timeout=timeout) File "/tmp/testrun/git/obspy/earthworm/waveserver.py", line 134, in sendSockReq s.connect((server, port)) File "/usr/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) error: [Errno 110] Connection timed out ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/earthworm/__init__.py", line 29, in obspy.earthworm.__init__ Failed example: t = response[0][4] Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.earthworm.__init__[4]>", line 1, in <module> t = response[0][4] NameError: name 'response' is not defined ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/earthworm/__init__.py", line 30, in obspy.earthworm.__init__ Failed example: st = client.getWaveform('UW', 'TUCA', '', 'BH*', t + 100, t + 130) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.earthworm.__init__[5]>", line 1, in <module> st = client.getWaveform('UW', 'TUCA', '', 'BH*', t + 100, t + 130) NameError: name 't' is not defined
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2201, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.earthworm.client.Client.availability File "/tmp/testrun/git/obspy/earthworm/client.py", line 167, in availability ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/earthworm/client.py", line 194, in obspy.earthworm.client.Client.availability Failed example: response = client.availability(network="UW", station="TUCA", channel="BH*") Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.earthworm.client.Client.availability[2]>", line 2, in <module> channel="BH*") File "/tmp/testrun/git/obspy/earthworm/client.py", line 220, in availability response = getMenu(self.host, self.port, timeout=self.timeout) File "/tmp/testrun/git/obspy/earthworm/waveserver.py", line 202, in getMenu timeout=timeout) File "/tmp/testrun/git/obspy/earthworm/waveserver.py", line 134, in sendSockReq s.connect((server, port)) File "/usr/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) timeout: timed out
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2201, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.earthworm.client.Client.getWaveform File "/tmp/testrun/git/obspy/earthworm/client.py", line 49, in getWaveform ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/earthworm/client.py", line 81, in obspy.earthworm.client.Client.getWaveform Failed example: st = client.getWaveform('UW', 'TUCA', '', 'BHZ', dt, dt + 10) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.earthworm.client.Client.getWaveform[3]>", line 1, in <module> st = client.getWaveform('UW', 'TUCA', '', 'BHZ', dt, dt + 10) File "/tmp/testrun/git/obspy/earthworm/client.py", line 111, in getWaveform timeout=self.timeout) File "/tmp/testrun/git/obspy/earthworm/waveserver.py", line 244, in readWaveServerV sock = sendSockReq(server, port, reqstr, timeout=timeout) File "/tmp/testrun/git/obspy/earthworm/waveserver.py", line 134, in sendSockReq s.connect((server, port)) File "/usr/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) error: [Errno 110] Connection timed out ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/earthworm/client.py", line 83, in obspy.earthworm.client.Client.getWaveform Failed example: st = client.getWaveform('UW', 'TUCA', '', 'BH*', dt, dt + 10) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.earthworm.client.Client.getWaveform[5]>", line 1, in <module> st = client.getWaveform('UW', 'TUCA', '', 'BH*', dt, dt + 10) File "/tmp/testrun/git/obspy/earthworm/client.py", line 104, in getWaveform cleanup=cleanup) File "/tmp/testrun/git/obspy/earthworm/client.py", line 111, in getWaveform timeout=self.timeout) File "/tmp/testrun/git/obspy/earthworm/waveserver.py", line 244, in readWaveServerV sock = sendSockReq(server, port, reqstr, timeout=timeout) File "/tmp/testrun/git/obspy/earthworm/waveserver.py", line 134, in sendSockReq s.connect((server, port)) File "/usr/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) error: [Errno 110] Connection timed out
Traceback (most recent call last): File "/tmp/testrun/git/obspy/fdsn/tests/test_client.py", line 383, in test_IRIS_example_queries_station self.assertEqual(msg, "", msg) AssertionError: Diff: - <Station code="ATTUB" startDate="2006-06-20T00:00:00" endDate="2010-04-01T19:15:00" restrictedStatus="open" iris:alternateNetworkCodes=".EARTHSCOPE,_US-REF,_US-ALL,_US-REGIONAL,_US-BB+A,_AFTAC,.UNRESTRICTED,_US-BB,_GSN,_GSN-BROADBAND"> ? -------------- + <Station code="ATTUB" startDate="2006-06-20T00:00:00" endDate="2010-04-01T19:15:00" restrictedStatus="open" iris:alternateNetworkCodes=".EARTHSCOPE,_US-REF,_US-ALL,_US-REGIONAL,_US-BB+A,.UNRESTRICTED,_AFTAC,_US-BB,_GSN,_GSN-BROADBAND"> ? ++++++++++++++
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2201, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.ndk.__init__ File "/tmp/testrun/git/obspy/ndk/__init__.py", line 2, in __init__ ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/ndk/__init__.py", line 73, in obspy.ndk.__init__ Failed example: cat = obspy.readEvents("http://www.ldeo.columbia.edu/~gcmt/projects/CMT/" "catalog/NEW_MONTHLY/2011/feb11.ndk") Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.ndk.__init__[4]>", line 1, in <module> cat = obspy.readEvents("http://www.ldeo.columbia.edu/~gcmt/projects/CMT/" File "/tmp/testrun/git/obspy/core/util/decorator.py", line 380, in new_func return func(*args, **kwargs) File "/tmp/testrun/git/obspy/core/event.py", line 116, in readEvents fh.write(urllib.request.urlopen(pathname_or_url).read()) File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 403: Forbidden ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/ndk/__init__.py", line 75, in obspy.ndk.__init__ Failed example: print(cat) Expected: 135 Event(s) in Catalog: 2011-02-01T03:32:08.600000Z | +22.520, +144.790 | 5.02 Mwc 2011-02-01T08:16:31.700000Z | +24.190, +121.730 | 5.33 Mwc ... 2011-02-28T20:45:45.700000Z | -20.520, -69.440 | 5.27 Mwc 2011-02-28T23:42:21.500000Z | -29.650, -112.280 | 5.54 Mwc To see all events call 'print CatalogObject.__str__(print_all=True)' Got: 1 Event(s) in Catalog: 2006-04-09T20:50:51.300000Z | -20.460, -70.730 | 5.73 Mwc
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2201, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.neic.client.Client.getWaveformNSCL File "/tmp/testrun/git/obspy/neic/client.py", line 126, in getWaveformNSCL ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/neic/client.py", line 159, in obspy.neic.client.Client.getWaveformNSCL Failed example: st = client.getWaveformNSCL("IUANMO BH.00", t, 10) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.neic.client.Client.getWaveformNSCL[4]>", line 1, in <module> st = client.getWaveformNSCL("IUANMO BH.00", t, 10) File "/tmp/testrun/git/obspy/neic/client.py", line 179, in getWaveformNSCL s.connect((self.host, self.port)) File "/usr/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) error: [Errno 110] Connection timed out ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/neic/client.py", line 160, in obspy.neic.client.Client.getWaveformNSCL Failed example: print(st) # doctest: +ELLIPSIS Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.neic.client.Client.getWaveformNSCL[5]>", line 1, in <module> print(st) # doctest: +ELLIPSIS NameError: name 'st' is not defined
Traceback (most recent call last): File "/tmp/testrun/git/obspy/neic/tests/test_client.py", line 26, in test_getWaveform st = client.getWaveformNSCL("IUANMO BH.00", t, duration) File "/tmp/testrun/git/obspy/neic/client.py", line 179, in getWaveformNSCL s.connect((self.host, self.port)) File "/usr/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) error: [Errno 110] Connection timed out
Traceback (most recent call last): File "/tmp/testrun/git/obspy/neic/tests/test_client.py", line 48, in test_getWaveformNSCL st = client.getWaveformNSCL("IUANMO BH.00", t, duration_long) File "/tmp/testrun/git/obspy/neic/client.py", line 179, in getWaveformNSCL s.connect((self.host, self.port)) File "/usr/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) error: [Errno 110] Connection timed out
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2201, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.neic.client.Client File "/tmp/testrun/git/obspy/neic/client.py", line 23, in Client ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/neic/client.py", line 43, in obspy.neic.client.Client Failed example: st = client.getWaveform("IU", "ANMO", "00", "BH?", t, t + 10) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.neic.client.Client[3]>", line 1, in <module> st = client.getWaveform("IU", "ANMO", "00", "BH?", t, t + 10) File "/tmp/testrun/git/obspy/neic/client.py", line 124, in getWaveform return self.getWaveformNSCL(seedname, starttime, endtime - starttime) File "/tmp/testrun/git/obspy/neic/client.py", line 179, in getWaveformNSCL s.connect((self.host, self.port)) File "/usr/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) error: [Errno 110] Connection timed out ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/neic/client.py", line 44, in obspy.neic.client.Client Failed example: print(st) # doctest: +ELLIPSIS Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.neic.client.Client[4]>", line 1, in <module> print(st) # doctest: +ELLIPSIS NameError: name 'st' is not defined ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/neic/client.py", line 49, in obspy.neic.client.Client Failed example: st = client.getWaveformNSCL("IUANMO BH.00", t, 10) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.neic.client.Client[5]>", line 1, in <module> st = client.getWaveformNSCL("IUANMO BH.00", t, 10) File "/tmp/testrun/git/obspy/neic/client.py", line 179, in getWaveformNSCL s.connect((self.host, self.port)) File "/usr/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) error: [Errno 110] Connection timed out ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/neic/client.py", line 50, in obspy.neic.client.Client Failed example: print(st) # doctest: +ELLIPSIS Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.neic.client.Client[6]>", line 1, in <module> print(st) # doctest: +ELLIPSIS NameError: name 'st' is not defined
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2201, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.neic.client.Client.getWaveform File "/tmp/testrun/git/obspy/neic/client.py", line 70, in getWaveform ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/neic/client.py", line 108, in obspy.neic.client.Client.getWaveform Failed example: st = client.getWaveform("IU", "ANMO", "0?", "BH?", t, t + 10) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.neic.client.Client.getWaveform[3]>", line 1, in <module> st = client.getWaveform("IU", "ANMO", "0?", "BH?", t, t + 10) File "/tmp/testrun/git/obspy/neic/client.py", line 124, in getWaveform return self.getWaveformNSCL(seedname, starttime, endtime - starttime) File "/tmp/testrun/git/obspy/neic/client.py", line 179, in getWaveformNSCL s.connect((self.host, self.port)) File "/usr/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) error: [Errno 110] Connection timed out ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/neic/client.py", line 109, in obspy.neic.client.Client.getWaveform Failed example: print(st) # doctest: +ELLIPSIS Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.neic.client.Client.getWaveform[4]>", line 1, in <module> print(st) # doctest: +ELLIPSIS NameError: name 'st' is not defined
Traceback (most recent call last): File "/tmp/testrun/git/obspy/neries/tests/test_client.py", line 261, in test_getInventory self.assertTrue(isinstance(result, object)) AssertionError: False is not true
Traceback (most recent call last): File "/tmp/testrun/git/obspy/neries/tests/test_client.py", line 139, in test_getEventDetail data = client.getEventDetail("19990817_0000001", format='xml') File "/tmp/testrun/git/obspy/neries/client.py", line 413, in getEventDetail data = self._fetch("/services/event/detail", **kwargs) File "/tmp/testrun/git/obspy/neries/client.py", line 169, in _fetch response = urllib.request.urlopen(remoteaddr, timeout=self.timeout) File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 503: Service Unavailable
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2201, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.neries.client.Client.getEvents File "/tmp/testrun/git/obspy/neries/client.py", line 83, in getEvents ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/neries/client.py", line 144, in obspy.neries.client.Client.getEvents Failed example: events = client.getEvents(min_datetime="2004-12-01", max_datetime="2005-01-01", min_magnitude=9, format="list") Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.neries.client.Client.getEvents[2]>", line 3, in <module> min_magnitude=9, format="list") File "/tmp/testrun/git/obspy/neries/client.py", line 89, in wrapper v = f(*args, **new_kwargs) File "/tmp/testrun/git/obspy/neries/client.py", line 288, in getEvents data = self._fetch("/services/event/search", **kwargs) File "/tmp/testrun/git/obspy/neries/client.py", line 169, in _fetch response = urllib.request.urlopen(remoteaddr, timeout=self.timeout) File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 503: Service Unavailable ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/neries/client.py", line 147, in obspy.neries.client.Client.getEvents Failed example: len(events) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.neries.client.Client.getEvents[3]>", line 1, in <module> len(events) NameError: name 'events' is not defined
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2201, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.neries.client.Client.getLatestEvents File "/tmp/testrun/git/obspy/neries/client.py", line 297, in getLatestEvents ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/neries/client.py", line 323, in obspy.neries.client.Client.getLatestEvents Failed example: events = client.getLatestEvents(num=5, format='list') Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.neries.client.Client.getLatestEvents[2]>", line 1, in <module> events = client.getLatestEvents(num=5, format='list') File "/tmp/testrun/git/obspy/neries/client.py", line 352, in getLatestEvents data = self._fetch("/services/event/latest", **kwargs) File "/tmp/testrun/git/obspy/neries/client.py", line 169, in _fetch response = urllib.request.urlopen(remoteaddr, timeout=self.timeout) File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 503: Service Unavailable
Traceback (most recent call last): File "/tmp/testrun/git/obspy/neries/tests/test_client.py", line 27, in test_getEventsList max_datetime="2005-01-01") File "/tmp/testrun/git/obspy/neries/client.py", line 89, in wrapper v = f(*args, **new_kwargs) File "/tmp/testrun/git/obspy/neries/client.py", line 288, in getEvents data = self._fetch("/services/event/search", **kwargs) File "/tmp/testrun/git/obspy/neries/client.py", line 169, in _fetch response = urllib.request.urlopen(remoteaddr, timeout=self.timeout) File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 503: Service Unavailable
Traceback (most recent call last): File "/tmp/testrun/git/obspy/neries/tests/test_client.py", line 90, in test_getEventsWithUTCDateTimes max_datetime=UTCDateTime("2005-01-01")) File "/tmp/testrun/git/obspy/neries/client.py", line 89, in wrapper v = f(*args, **new_kwargs) File "/tmp/testrun/git/obspy/neries/client.py", line 288, in getEvents data = self._fetch("/services/event/search", **kwargs) File "/tmp/testrun/git/obspy/neries/client.py", line 169, in _fetch response = urllib.request.urlopen(remoteaddr, timeout=self.timeout) File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 503: Service Unavailable
Traceback (most recent call last): File "/tmp/testrun/git/obspy/neries/tests/test_client.py", line 127, in test_getEventsAsCatalog max_datetime=UTCDateTime("2005-01-01")) File "/tmp/testrun/git/obspy/neries/client.py", line 89, in wrapper v = f(*args, **new_kwargs) File "/tmp/testrun/git/obspy/neries/client.py", line 288, in getEvents data = self._fetch("/services/event/search", **kwargs) File "/tmp/testrun/git/obspy/neries/client.py", line 169, in _fetch response = urllib.request.urlopen(remoteaddr, timeout=self.timeout) File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 503: Service Unavailable
Traceback (most recent call last): File "/tmp/testrun/git/obspy/neries/tests/test_client.py", line 116, in test_getEventsAsQuakeML max_datetime=UTCDateTime("2005-01-01")) File "/tmp/testrun/git/obspy/neries/client.py", line 89, in wrapper v = f(*args, **new_kwargs) File "/tmp/testrun/git/obspy/neries/client.py", line 288, in getEvents data = self._fetch("/services/event/search", **kwargs) File "/tmp/testrun/git/obspy/neries/client.py", line 169, in _fetch response = urllib.request.urlopen(remoteaddr, timeout=self.timeout) File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 503: Service Unavailable
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2201, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.neries.__init__ File "/tmp/testrun/git/obspy/neries/__init__.py", line 1, in __init__ ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/neries/__init__.py", line 25, in obspy.neries.__init__ Failed example: events = client.getEvents(min_datetime="2004-01-01", max_datetime="2005-01-01", min_magnitude=9) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.neries.__init__[2]>", line 3, in <module> min_magnitude=9) File "/tmp/testrun/git/obspy/neries/client.py", line 89, in wrapper v = f(*args, **new_kwargs) File "/tmp/testrun/git/obspy/neries/client.py", line 288, in getEvents data = self._fetch("/services/event/search", **kwargs) File "/tmp/testrun/git/obspy/neries/client.py", line 169, in _fetch response = urllib.request.urlopen(remoteaddr, timeout=self.timeout) File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 503: Service Unavailable ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/neries/__init__.py", line 28, in obspy.neries.__init__ Failed example: len(events) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.neries.__init__[3]>", line 1, in <module> len(events) NameError: name 'events' is not defined ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/neries/__init__.py", line 41, in obspy.neries.__init__ Failed example: events = client.getLatestEvents(num=5, format='list') Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.neries.__init__[7]>", line 1, in <module> events = client.getLatestEvents(num=5, format='list') File "/tmp/testrun/git/obspy/neries/client.py", line 352, in getLatestEvents data = self._fetch("/services/event/latest", **kwargs) File "/tmp/testrun/git/obspy/neries/client.py", line 169, in _fetch response = urllib.request.urlopen(remoteaddr, timeout=self.timeout) File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 503: Service Unavailable ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/neries/__init__.py", line 55, in obspy.neries.__init__ Failed example: result = client.getEventDetail("20041226_0000148", 'list') Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.neries.__init__[12]>", line 1, in <module> result = client.getEventDetail("20041226_0000148", 'list') File "/tmp/testrun/git/obspy/neries/client.py", line 413, in getEventDetail data = self._fetch("/services/event/detail", **kwargs) File "/tmp/testrun/git/obspy/neries/client.py", line 169, in _fetch response = urllib.request.urlopen(remoteaddr, timeout=self.timeout) File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 503: Service Unavailable ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/neries/__init__.py", line 56, in obspy.neries.__init__ Failed example: len(result) # Number of calculated origins Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.neries.__init__[13]>", line 1, in <module> len(result) # Number of calculated origins NameError: name 'result' is not defined
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2201, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.neries.client.Client.getEventDetail File "/tmp/testrun/git/obspy/neries/client.py", line 361, in getEventDetail ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/neries/client.py", line 383, in obspy.neries.client.Client.getEventDetail Failed example: result = client.getEventDetail("19990817_0000001", 'list') Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.neries.client.Client.getEventDetail[2]>", line 1, in <module> result = client.getEventDetail("19990817_0000001", 'list') File "/tmp/testrun/git/obspy/neries/client.py", line 413, in getEventDetail data = self._fetch("/services/event/detail", **kwargs) File "/tmp/testrun/git/obspy/neries/client.py", line 169, in _fetch response = urllib.request.urlopen(remoteaddr, timeout=self.timeout) File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 503: Service Unavailable ---------------------------------------------------------------------- File "/tmp/testrun/git/obspy/neries/client.py", line 384, in obspy.neries.client.Client.getEventDetail Failed example: len(result) # Number of calculated origins Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "<doctest obspy.neries.client.Client.getEventDetail[3]>", line 1, in <module> len(result) # Number of calculated origins NameError: name 'result' is not defined
Traceback (most recent call last): File "/tmp/testrun/git/obspy/neries/tests/test_client.py", line 171, in test_getLatestEvents data = client.getLatestEvents(5, format='xml') File "/tmp/testrun/git/obspy/neries/client.py", line 352, in getLatestEvents data = self._fetch("/services/event/latest", **kwargs) File "/tmp/testrun/git/obspy/neries/client.py", line 169, in _fetch response = urllib.request.urlopen(remoteaddr, timeout=self.timeout) File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 503: Service Unavailable
Traceback (most recent call last): File "/tmp/testrun/git/obspy/neries/tests/test_client.py", line 295, in test_issue531 minmag=5.5, format='catalog') File "/tmp/testrun/git/obspy/neries/client.py", line 89, in wrapper v = f(*args, **new_kwargs) File "/tmp/testrun/git/obspy/neries/client.py", line 288, in getEvents data = self._fetch("/services/event/search", **kwargs) File "/tmp/testrun/git/obspy/neries/client.py", line 169, in _fetch response = urllib.request.urlopen(remoteaddr, timeout=self.timeout) File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 503: Service Unavailable
Chuck Norris Fact
Don't worry about tests, Chuck Norris's test cases cover your code too.