We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 339c6b3 commit 66a1637Copy full SHA for 66a1637
pandas/io/tests/test_parsers.py
@@ -1435,14 +1435,21 @@ def test_url(self):
1435
1436
@slow
1437
def test_file(self):
1438
+ import urllib2
1439
+
1440
# FILE
1441
if sys.version_info[:2] < (2, 6):
1442
raise nose.SkipTest("file:// not supported with Python < 2.6")
1443
dirpath = curpath()
1444
localtable = os.path.join(dirpath, 'salary.table')
1445
local_table = read_table(localtable)
1446
- url_table = read_table('file://localhost/'+localtable)
1447
+ try:
1448
+ url_table = read_table('file://localhost/'+localtable)
1449
+ except urllib2.URLError:
1450
+ # fails on some systems
1451
+ raise nose.SkipTest
1452
1453
assert_frame_equal(url_table, local_table)
1454
1455
def test_parse_tz_aware(self):
0 commit comments