diff options
Diffstat (limited to 'src/silx/utils/test/test_external_resources.py')
-rw-r--r-- | src/silx/utils/test/test_external_resources.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/silx/utils/test/test_external_resources.py b/src/silx/utils/test/test_external_resources.py index 6279460..565554e 100644 --- a/src/silx/utils/test/test_external_resources.py +++ b/src/silx/utils/test/test_external_resources.py @@ -40,7 +40,7 @@ from silx.utils.ExternalResources import ExternalResources def isSilxWebsiteAvailable(): try: - urllib.request.urlopen('http://www.silx.org', timeout=1) + urllib.request.urlopen("http://www.silx.org", timeout=1) return True except urllib.error.URLError: return False @@ -58,7 +58,9 @@ class TestExternalResources(unittest.TestCase): raise unittest.SkipTest("Network or silx website not available") def setUp(self): - self.resources = ExternalResources("toto%d" % os.getpid(), "http://www.silx.org/pub/silx/") + self.resources = ExternalResources( + "toto%d" % os.getpid(), "http://www.silx.org/pub/silx/" + ) def tearDown(self): if self.resources.data_home: |