From ae3dd61e2f0829d08d35b419b38381b71fe5de6d Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 28 Dec 2014 15:40:13 -0500 Subject: Don't use %r for filenames, on windows, the backslashes go nuts. --- coverage/execfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/execfile.py') diff --git a/coverage/execfile.py b/coverage/execfile.py index beaf1913..654d2808 100644 --- a/coverage/execfile.py +++ b/coverage/execfile.py @@ -180,7 +180,7 @@ def make_code_from_py(filename): try: source = get_python_source(filename) except (IOError, NoSource): - raise NoSource("No file to run: %r" % filename) + raise NoSource("No file to run: '%s'" % filename) code = compile(source, filename, "exec") return code -- cgit v1.2.1