diff options
-rw-r--r-- | coverage/execfile.py | 2 | ||||
-rw-r--r-- | coverage/files.py | 2 | ||||
-rw-r--r-- | coverage/plugin.py | 8 |
3 files changed, 6 insertions, 6 deletions
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 diff --git a/coverage/files.py b/coverage/files.py index 8fa8067f..9f0827fa 100644 --- a/coverage/files.py +++ b/coverage/files.py @@ -95,7 +95,7 @@ def get_python_source(filename): break else: # Couldn't find source. - raise NoSource("No source for code: %r." % filename) + raise NoSource("No source for code: '%s'." % filename) # Python code should always end with a line with a newline. if source and source[-1] != '\n': diff --git a/coverage/plugin.py b/coverage/plugin.py index 6c7de669..7d67762a 100644 --- a/coverage/plugin.py +++ b/coverage/plugin.py @@ -68,10 +68,10 @@ class FileTracer(object): def has_dynamic_source_filename(self): """Does this FileTracer have dynamic source filenames? - FileTracers can provide dynamically determined filenames by implementing - dynamic_source_filename. Invoking that function is expensive. To - determine whether it should invoke it, coverage.py uses the result of - this function to know if it needs to bother invoking + FileTracers can provide dynamically determined filenames by + implementing dynamic_source_filename. Invoking that function is + expensive. To determine whether it should invoke it, coverage.py uses + the result of this function to know if it needs to bother invoking dynamic_source_filename. Returns: |