Ticket #12876: trac_12876_r_test.patch

File trac_12876_r_test.patch, 1.1 KB (added by SimonKing, 6 years ago)

Try to make one test in interfaces/r.py more stable wrt symbolic links

  • sage/interfaces/r.py

    # HG changeset patch
    # User Simon King <simon.king@uni-jena.de>
    # Date 1346340345 -7200
    # Node ID 8fb12b2353a95eb392c36bddb93bf6d3e4521cd7
    # Parent  9a194b2c2d15f7b0d92db039bebfe2f3c8f0e2f9
    #12876: Make one test in interfaces/r.py more stable wrt symbolic links.
    
    diff --git a/sage/interfaces/r.py b/sage/interfaces/r.py
    a b  
    11641164        directory.  We need to use ``realpath()`` in case ``$TMPDIR``
    11651165        (by default ``/tmp``) is a symbolic link (see :trac:`10264`).
    11661166
     1167        .. TODO::
     1168
     1169            The ``realpath`` on the right-hand side of the equation was
     1170            introduced in :trac:`12876`. The test should actually work without
     1171            it, but it does not, for reasons that are not clear yet. This is
     1172            addressed in :trac:`9970`.
     1173
    11671174        ::
    11681175
    1169             sage: os.path.realpath(tmpdir) == sageobj(r.getwd())  # known bug (:trac:`9970`)
     1176            sage: os.path.realpath(tmpdir) == os.path.realpath(sageobj(r.getwd()))
    11701177            True
    11711178        """
    11721179        self.execute('setwd(%r)' % dir)