#14594: Make dot2tex work with matplotlib 1.2.x (as well as older versions)
------------------------------------------+---------------------------------
Reporter: aschilling | Owner: sage-combinat
Type: defect | Status: needs_work
Priority: critical | Milestone: sage-5.10
Component: packages: optional | Resolution:
Keywords: dot2tex spkg pyparsing | Work issues: Update `SPKG.txt`,
add `src/` to `.hgignore`, probably remove upstream history
Report Upstream: N/A | Reviewers: Travis Scrimshaw
Authors: Leif Leonhardy | Merged in:
Dependencies: | Stopgaps:
------------------------------------------+---------------------------------
Comment (by leif):
Replying to [comment:25 leif]:
> After having installed `pdftk`, `spkg-check` still fails for me at least
because of
> {{{
> IOError: [Errno 2] No such file or directory:
'testgraphs/parsetests/current.dot'
> IOError: [Errno 2] No such file or directory:
'testgraphs/parsetests/ports.dot'
> IOError: [Errno 2] No such file or directory:
'testgraphs/parsetests/unicode1.dot'
> }}}
> which doesn't seem to be a regression ... 8-/
>
> They're missing in the original 2.8.7-2 spkg as well as in upstream's
2.8.7 release tarball.
I didn't find any traces of those three files in the svn nor the Mercurial
repo.
So we could patch out the last three tests in
`tests/test_comparedotparsing.py`:
{{{
#!python
class DotparsingTest(unittest.TestCase):
def setUp(self):
if not os.path.exists(PNG_DIR):
os.mkdir(PNG_DIR)
if not os.path.exists(DOT_DIR):
os.mkdir(DOT_DIR)
def test_ids(self):
self.assertEqual(test_dotfile("ids.dot"),1)
def test_multilines(self):
self.assertEqual(test_dotfile("multilines.dot"),1)
def test_subgraphs(self):
self.assertEqual(test_dotfile("subgraphs.dot"),1)
def test_quoting(self):
self.assertEqual(test_dotfile("quoting.dot"),1)
def test_unicode1(self):
self.assertEqual(test_dotfile("unicode1.dot"),1)
def test_current(self):
self.assertEqual(test_dotfile("current.dot"),1)
def test_ports(self):
self.assertEqual(test_dotfile("ports.dot"),1)
}}}
(Note that these tests are still present even in the latest versions;
actually, the whole file hasn't changed at all since at least when the
Mercurial repo was created.)
Or ''someone^TM^'' would have to create the missing reference files...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14594#comment:26>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.