From a801d0b073eb3b7b103906d675e8834639d7f32a Mon Sep 17 00:00:00 2001 From: terrytangyuan Date: Mon, 31 Aug 2015 22:52:05 -0400 Subject: [PATCH] TST: Changed pythonxs link to alternative link and mofidifed test_html (issue: 10906) --- pandas/io/tests/test_html.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/pandas/io/tests/test_html.py b/pandas/io/tests/test_html.py index ebdfbe5af299d..fb7ffbc6dd621 100644 --- a/pandas/io/tests/test_html.py +++ b/pandas/io/tests/test_html.py @@ -358,20 +358,16 @@ def test_negative_skiprows(self): @network def test_multiple_matches(self): - raise nose.SkipTest("pythonxy link seems to have changed") - - url = 'http://code.google.com/p/pythonxy/wiki/StandardPlugins' - dfs = self.read_html(url, match='Python', attrs={'class': 'wikitable'}) + url = 'https://docs.python.org/2/' + dfs = self.read_html(url, match='Python') self.assertTrue(len(dfs) > 1) @network - def test_pythonxy_plugins_table(self): - raise nose.SkipTest("pythonxy link seems to have changed") - - url = 'http://code.google.com/p/pythonxy/wiki/StandardPlugins' - dfs = self.read_html(url, match='Python', attrs={'class': 'wikitable'}) - zz = [df.iloc[0, 0] for df in dfs] - self.assertEqual(sorted(zz), sorted(['Python', 'SciTE'])) + def test_python_docs_table(self): + url = 'https://docs.python.org/2/' + dfs = self.read_html(url, match='Python') + zz = [df.iloc[0, 0][0:4] for df in dfs] + self.assertEqual(sorted(zz), sorted(['Repo', 'What'])) @slow def test_thousands_macau_stats(self):