diff options
author | Éric Araujo <merwok@netwok.org> | 2011-07-15 15:50:15 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-07-15 15:50:15 (GMT) |
commit | af5bacf9bb9b9729fac3da50111441b1f0efdd44 (patch) | |
tree | 8944529d273dd10304cb869009d3b638e258743c /Lib | |
parent | eb39294101ba45c154d7221e970f65e30067574e (diff) | |
download | cpython-af5bacf9bb9b9729fac3da50111441b1f0efdd44.zip cpython-af5bacf9bb9b9729fac3da50111441b1f0efdd44.tar.gz cpython-af5bacf9bb9b9729fac3da50111441b1f0efdd44.tar.bz2 |
Always use repr for regrtest resources names
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/support.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py index 64864de..3dc4bfb 100644 --- a/Lib/test/support.py +++ b/Lib/test/support.py @@ -289,7 +289,7 @@ def requires(resource, msg=None): return if not is_resource_enabled(resource): if msg is None: - msg = "Use of the `%s' resource not enabled" % resource + msg = "Use of the %r resource not enabled" % resource raise ResourceDenied(msg) def requires_linux_version(*min_version): @@ -665,7 +665,7 @@ def open_urlresource(url, *args, **kw): f = check_valid_file(fn) if f is not None: return f - raise TestFailed('invalid resource "%s"' % fn) + raise TestFailed('invalid resource %r' % fn) class WarningsRecorder(object): @@ -916,7 +916,7 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()): ('WSANO_DATA', 11004), ] - denied = ResourceDenied("Resource '%s' is not available" % resource_name) + denied = ResourceDenied("Resource %r is not available" % resource_name) captured_errnos = errnos gai_errnos = [] if not captured_errnos: |