diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-08-05 13:21:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-05 13:21:32 (GMT) |
commit | 1bb955a2fe0237721c141fdfe520fd3ba46db11e (patch) | |
tree | 56bfc52f28cbdfc12d252e39b969e9ae4691cefb /Lib/test/pickletester.py | |
parent | 1422500d020bd199b26357fc387f8b79b82226cd (diff) | |
download | cpython-1bb955a2fe0237721c141fdfe520fd3ba46db11e.zip cpython-1bb955a2fe0237721c141fdfe520fd3ba46db11e.tar.gz cpython-1bb955a2fe0237721c141fdfe520fd3ba46db11e.tar.bz2 |
gh-122459: Optimize pickling by name objects without __module__ (GH-122460)
Diffstat (limited to 'Lib/test/pickletester.py')
-rw-r--r-- | Lib/test/pickletester.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py index 3c936b3..db42f13 100644 --- a/Lib/test/pickletester.py +++ b/Lib/test/pickletester.py @@ -2068,7 +2068,7 @@ class AbstractPicklingErrorTests: self.dumps(f, proto) self.assertIn(str(cm.exception), { f"Can't pickle {f!r}: it's not found as {__name__}.{f.__qualname__}", - f"Can't get local object {f.__qualname__!r}"}) + f"Can't get local attribute {f.__qualname__!r} on {sys.modules[__name__]}"}) # Same without a __module__ attribute (exercises a different path # in _pickle.c). del f.__module__ |