Skip to content

Commit

Permalink
Merge pull request #676 from duncanmmacleod/tests-gspy-urlerror
Browse files Browse the repository at this point in the history
Improved error handling in TestGravitySpyTable
  • Loading branch information
Duncan Macleod committed Feb 18, 2018
2 parents 3cb7782 + 3bf98ff commit e90a3ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gwpy/tests/test_table.py
Expand Up @@ -22,9 +22,11 @@
import os.path
import shutil
import tempfile
from ssl import SSLError

from six import PY2
from six.moves import StringIO
from six.moves.urllib.error import URLError

import pytest

Expand Down Expand Up @@ -524,11 +526,9 @@ class TestGravitySpyTable(TestEventTable):
TABLE = GravitySpyTable

def test_search(self):
from ssl import SSLError

try:
t2 = self.TABLE.search(uniqueID="8FHTgA8MEu", howmany=1)
except SSLError as e:
except (URLError, SSLError) as e:
pytest.skip(str(e))

import json
Expand Down

0 comments on commit e90a3ad

Please sign in to comment.