Avoid 404 errors in stable when upstream reorganize the test data
(happened to two of these in 0.25 -> 1.0).
It is _not_ necessary to update the tag version on every package release,
only if these tests fail because they expect moved/changed data.
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed
Gbp-Pq: Name stable_test_urls.patch
@tm.network
def test_read_from_http_url(self, read_ext):
url = (
- "https://raw.githubusercontent.com/pandas-dev/pandas/master/"
+ "https://raw.githubusercontent.com/pandas-dev/pandas/v1.0.3/"
"pandas/tests/io/data/excel/test1" + read_ext
)
url_table = pd.read_excel(url)
kwargs = dict(sep="\t")
url = (
- "https://raw.github.com/pandas-dev/pandas/master/"
+ "https://github.com/pandas-dev/pandas/raw/v1.0.3/"
"pandas/tests/io/parser/data/salaries.csv"
)
url_result = parser.read_csv(url, **kwargs)
# test reading compressed urls with various engines and
# extension inference
base_url = (
- "https://github.com/pandas-dev/pandas/raw/master/"
+ "https://github.com/pandas-dev/pandas/raw/v1.0.3/"
"pandas/tests/io/parser/data/salaries.csv"
)
@tm.network
def test_spam_url(self):
url = (
- "https://raw.githubusercontent.com/pandas-dev/pandas/master/"
+ "https://raw.githubusercontent.com/pandas-dev/pandas/v1.0.3/"
"pandas/tests/io/data/html/spam.html"
)
df1 = self.read_html(url, ".*Water.*")