python-ipython/opensuse-disable-net-test.patch
Tomáš Chvátal f6e4024847 Accepting request 799685 from home:bnavigator:branches:devel:languages:python:jupyter
- Update to version 7.14.0
  IPython  7.14 is a minor release that fix a couple of bugs and prepare
  compatibility with new or future versions of some libraries. 
  * Fix compatibility with Sphinx 3+
    gh#ipython/ipython#12235
  * Remove deprecated matplotlib parameter usage, compatibility with
    matplotlib3.3+ 
    gh#ipython/ipython#12250
  * set ``.py`` extension when editing current buffer in vi/emacs.
    gh#ipython/ipython#12167
  * support for unicode identifiers in ``?``/``??``
    gh#ipython/ipython#12208
  * add extra options to the ``Video`` Rich objects
    gh#ipython/ipython#12212
  * add pretty-printing to ``SimpleNamespace``
    gh#ipython/ipython#12230 
- add opensuse-disable-net-test.patch to disable network access
  during new test_embed_svg_url

OBS-URL: https://build.opensuse.org/request/show/799685
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipython?expand=0&rev=43
2020-05-23 13:42:20 +00:00

28 lines
1.1 KiB
Diff

From: Ben Greiner <code@bnavigator.de>
Date: 2020-05-02 16:33:59 +0200
Subject: Disable the network part of test_embed_svg_url
Upstream: no
OBS can't access the wikimedia url. Disabling this part of the test.
---
diff -u -r ipython-7.14.0orig/IPython/core/tests/test_display.py ipython-7.14.0/IPython/core/tests/test_display.py
--- ipython-7.14.0orig/IPython/core/tests/test_display.py 2020-05-02 16:33:59.393228712 +0200
+++ ipython-7.14.0/IPython/core/tests/test_display.py 2020-05-02 16:35:11.825203757 +0200
@@ -106,10 +106,11 @@
svg = display.SVG(url=url + 'z')
nt.assert_true(svg._repr_svg_().startswith('<svg'))
- # do it for real: 6.1kB of data
- url = "https://upload.wikimedia.org/wikipedia/commons/3/30/Vector-based_example.svg"
- svg = display.SVG(url=url)
- nt.assert_true(svg._repr_svg_().startswith('<svg'))
+ # no network on OBS
+ # # do it for real: 6.1kB of data
+ # url = "https://upload.wikimedia.org/wikipedia/commons/3/30/Vector-based_example.svg"
+ # svg = display.SVG(url=url)
+ # nt.assert_true(svg._repr_svg_().startswith('<svg'))
def test_retina_jpeg():
here = os.path.dirname(__file__)