SHA256
1
0
forked from pool/python-nbval
python-nbval/nbval-sanitize-figure-size.patch
Benjamin Greiner a1f2757b89 Accepting request 998388 from home:bnavigator:branches:devel:languages:python:jupyter
- Remove python36 skiptest code
- Add nbval-sanitize-figure-size.patch
  * gh#computationalmodelling/nbval#183

- Multibuild test flavor: avoid (possible) build cycle

OBS-URL: https://build.opensuse.org/request/show/998388
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbval?expand=0&rev=20
2022-08-20 18:25:59 +00:00

16 lines
520 B
Diff

Index: nbval-0.9.6/tests/sanitize_defaults.cfg
===================================================================
--- nbval-0.9.6.orig/tests/sanitize_defaults.cfg
+++ nbval-0.9.6/tests/sanitize_defaults.cfg
@@ -13,4 +13,8 @@ replace: TIMESTAMP
[Memory addresses]
regex: (<[a-zA-Z_][0-9a-zA-Z_.]* at )(0x[0-9a-fA-F]+)(>)
-replace: \1MEMORY_ADDRESS\3
\ No newline at end of file
+replace: \1MEMORY_ADDRESS\3
+
+[Matplotlib figure size]
+regex: (Figure size )\d+x\d+( with \d+ Axes)
+replace: \1WIDTHxHEIGHT\2