Skip to content

BUG: test_wrong_url tests should be skipped with "--skip-network" #45085

Closed
@Apteryks

Description

@Apteryks

Pandas version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the master branch of pandas.

Reproducible Example

In a container which doesn't have networking facilities, run the test suite with:

pytest" -vv pandas --skip-slow --skip-network

Observe that the following tests fail:

pandas/tests/io/xml/test_xml.py::test_wrong_url[lxml]
pandas/tests/io/xml/test_xml.py::test_wrong_url[etree]


### Issue Description

The test_wrong_url apparently need to have network access, but aren't skipped by --skip-network.

### Expected Behavior

Given --skip-network was provided, the pandas/tests/io/xml/test_xml.py::test_wrong_url[lxml] and pandas/tests/io/xml/test_xml.py::test_wrong_url[etree] tests should have been skipped.

### Installed Versions

1.3.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugTestingpandas testing functions or related to the test suite

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions