Skip to content

Commit 18f1d77

Browse files
committed
Merge pull request #10958 from terrytangyuan/upstream
TST: Changed pythonxs link to alternative link and mofidifed test_html (issue: 10906)
2 parents 9ca8d3c + a801d0b commit 18f1d77

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

pandas/io/tests/test_html.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -358,20 +358,16 @@ def test_negative_skiprows(self):
358358

359359
@network
360360
def test_multiple_matches(self):
361-
raise nose.SkipTest("pythonxy link seems to have changed")
362-
363-
url = 'http://code.google.com/p/pythonxy/wiki/StandardPlugins'
364-
dfs = self.read_html(url, match='Python', attrs={'class': 'wikitable'})
361+
url = 'https://docs.python.org/2/'
362+
dfs = self.read_html(url, match='Python')
365363
self.assertTrue(len(dfs) > 1)
366364

367365
@network
368-
def test_pythonxy_plugins_table(self):
369-
raise nose.SkipTest("pythonxy link seems to have changed")
370-
371-
url = 'http://code.google.com/p/pythonxy/wiki/StandardPlugins'
372-
dfs = self.read_html(url, match='Python', attrs={'class': 'wikitable'})
373-
zz = [df.iloc[0, 0] for df in dfs]
374-
self.assertEqual(sorted(zz), sorted(['Python', 'SciTE']))
366+
def test_python_docs_table(self):
367+
url = 'https://docs.python.org/2/'
368+
dfs = self.read_html(url, match='Python')
369+
zz = [df.iloc[0, 0][0:4] for df in dfs]
370+
self.assertEqual(sorted(zz), sorted(['Repo', 'What']))
375371

376372
@slow
377373
def test_thousands_macau_stats(self):

0 commit comments

Comments
 (0)