SHA256
1
0
forked from pool/python-nbval
python-nbval/nbval-sanitize-figure-size.patch

16 lines
520 B
Diff
Raw Normal View History

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