Skip to content

Commit

Permalink
Compare Py2 vs Py3 better using comparepdf and diffpdf
Browse files Browse the repository at this point in the history
Procedure:

  virtualenv -p python2.7 .
  rm bin/python
  virtualenv -p python3.4 .
  rm bin/python
  bin/python2 --version  # make sure it prints 2.7
  bin/python3 --version  # make sure it prints 3.4
  bin/python2 -m mgp2pdf -o /tmp/py2 samples/*/*.mgp --unsafe
  bin/python3 -m mgp2pdf -o /tmp/py2 samples/*/*.mgp --unsafe
  cd /tmp
  for i in py2/*.pdf; do j=${i/2/3}; comparepdf -c a $i $j || echo $i $j; done
  diffpdf py2/python3.pdf py3/python3.pdf  # for visual eyeballing
  • Loading branch information
mgedmin committed Dec 5, 2014
1 parent 5435b21 commit 053da4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BUGS.rst
@@ -1,6 +1,7 @@
- samples/python/python3.mgp: slide 44 is rendered wrong on Python 3,
compared to Python 2's rendering UHH ACTUALLY it looks like rendering
changed in the last couple of days, current version is the same on Py2
vs Py3!
vs Py3! Except for minor differences in text positioning, probably resulting
from / returning floats now
- samples/python/python3.mgp: slide 44 is rendered wrong on Python 2,
compared to the original PDF from 2006

0 comments on commit 053da4c

Please sign in to comment.