summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <devnull@localhost>2008-09-18 21:41:36 -0500
committerBenjamin Peterson <devnull@localhost>2008-09-18 21:41:36 -0500
commit88f8ee809d47a92ec975a32570aab2313eb1b487 (patch)
tree60c90a0682f691596c9af3f60df0ca2f21fcfc1c
parenta1444aa1a7ce57dd6453a6e7a4a6adfe116d0d52 (diff)
downloadpygments-88f8ee809d47a92ec975a32570aab2313eb1b487.tar.gz
fix a testdir stragler
-rw-r--r--tests/test_latex_formatter.py5
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')