Skip to content

0.20rc1: goes online for data during testing - mark the tests? #12013

@yarikoptic

Description

@yarikoptic
~/deb/builds/scikit-learn/0.20~rc1-1 % grep -e 'def test_' -e 'Connection ref' scikit-learn_0.20~rc1-1_amd64.build
    def test_decode_iris():
proxy_auth_hdr = 'Proxy-Authorization', err = error(111, 'Connection refused')
E           URLError: <urlopen error [Errno 111] Connection refused>
    def test_decode_anneal():
proxy_auth_hdr = 'Proxy-Authorization', err = error(111, 'Connection refused')
E           URLError: <urlopen error [Errno 111] Connection refused>
    def test_decode_cpu():
proxy_auth_hdr = 'Proxy-Authorization', err = error(111, 'Connection refused')
E           URLError: <urlopen error [Errno 111] Connection refused>
    def test_decode_emotions():
proxy_auth_hdr = 'Proxy-Authorization', err = error(111, 'Connection refused')
E           URLError: <urlopen error [Errno 111] Connection refused>
    def test_feature_importance_regression():
E           IOError: [Errno socket error] [Errno 111] Connection refused
    ...

would be nice to have them marked with some tag, like "requires_internet" or alike so I could skip them at once. If you decide to test similarly, you can export fake http_proxy and https_proxy vars, eg. http_proxy=http://127.0.0.1:9

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions