diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-08-17 17:59:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-17 17:59:56 -0500 |
commit | 2e44a5e28c29dec0f01732ef66b6661727a916d3 (patch) | |
tree | bca375fb5c3e65443cdbc80cda7bf6ce19f22bdd /numpy/lib/tests/test__datasource.py | |
parent | 18f338acb8ef4b7b7508d8451f458c34566a05f0 (diff) | |
parent | 00a7cb7250072b972f6c5e3f45b6364c8f2a38f5 (diff) | |
download | numpy-2e44a5e28c29dec0f01732ef66b6661727a916d3.tar.gz |
Merge pull request #11715 from QuLogic/no-network
TST: Fix urlopen stubbing.
Diffstat (limited to 'numpy/lib/tests/test__datasource.py')
-rw-r--r-- | numpy/lib/tests/test__datasource.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/tests/test__datasource.py b/numpy/lib/tests/test__datasource.py index 70fff3bb0..85788941c 100644 --- a/numpy/lib/tests/test__datasource.py +++ b/numpy/lib/tests/test__datasource.py @@ -33,14 +33,14 @@ def urlopen_stub(url, data=None): old_urlopen = None -def setup(): +def setup_module(): global old_urlopen old_urlopen = urllib_request.urlopen urllib_request.urlopen = urlopen_stub -def teardown(): +def teardown_module(): urllib_request.urlopen = old_urlopen # A valid website for more robust testing |