diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_latex_formatter.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_latex_formatter.py b/tests/test_latex_formatter.py index 45f48638..44cf2c97 100644 --- a/tests/test_latex_formatter.py +++ b/tests/test_latex_formatter.py @@ -14,12 +14,13 @@ import tempfile from pygments.formatters import LatexFormatter from pygments.lexers import PythonLexer +from support import test_file + class LatexFormatterTest(unittest.TestCase): def test_valid_output(self): - tokensource = list(PythonLexer().get_tokens(file( - os.path.join(testdir, testfile)).read())) + tokensource = list(PythonLexer().get_tokens(file(test_file()).read())) fmt = LatexFormatter(full=True) handle, pathname = tempfile.mkstemp('.tex') |