diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-25 11:50:54 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-25 11:50:54 (GMT) |
commit | 6384c66d1fec061240afc40d91c8cc73e9736a57 (patch) | |
tree | 2245fff6a8e6864d3aca30d389cd8396aa4f4a78 | |
parent | 931602a1acea08d5288c7d8d99996082d0e0aa8b (diff) | |
parent | 84ca9fe14533d7fca2cf5c18d3cba3e72c8204ae (diff) | |
download | cpython-6384c66d1fec061240afc40d91c8cc73e9736a57.zip cpython-6384c66d1fec061240afc40d91c8cc73e9736a57.tar.gz cpython-6384c66d1fec061240afc40d91c8cc73e9736a57.tar.bz2 |
Merge 3.5
-rw-r--r-- | Lib/doctest.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py index 4094723..38fdd80 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -399,8 +399,9 @@ def _module_relative_path(module, path): basedir = os.curdir else: # A module w/o __file__ (this includes builtins) - raise ValueError("Can't resolve paths relative to the module " + - module + " (it has no __file__)") + raise ValueError("Can't resolve paths relative to the module " + "%r (it has no __file__)" + % module.__name__) # Combine the base directory and the path. return os.path.join(basedir, *(path.split('/'))) |