Skip to content

Commit

Permalink
Make correct test for tilde in filename issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JelteF committed May 8, 2017
1 parent 2a36db8 commit d2a783c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/test_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,6 @@ def test_graphics():
filename='', image_options=r"width=0.8\textwidth")
repr(stand_alone_graphic)

def test_stand_alone_graphic():
fname = "/just/a/test/file~1/path"

stand_alone_graphic = StandAloneGraphic(
filename=fname, image_options=r"width=0.8\textwidth")
repr(stand_alone_graphic)


def test_quantities():
# Quantities
Expand Down
6 changes: 6 additions & 0 deletions tests/test_utils_fix_filename.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,9 @@ def test_dots_in_path_one_in_filename():
def test_dots_in_path_and_multiple_in_filename():
fname = "/au.u/b.c.d/abc.def.fgh.ijk"
assert fix_filename(fname) == "/au.u/b.c.d/{abc.def.fgh}.ijk"


def test_tilde_in_filename():
fname = "/etc/local/foo.bar.baz/foo~1/document.pdf"
assert (fix_filename(fname) ==
'\detokenize{/etc/local/foo.bar.baz/foo~1/document.pdf}')

0 comments on commit d2a783c

Please sign in to comment.