aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_dist.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-03-15 22:22:04 -0400
committerJason R. Coombs <jaraco@jaraco.com>2020-03-15 22:22:04 -0400
commitb8c2ae517db14b03dfba263aa66707ca67ecee8f (patch)
treec4f0382f704baf5a0a9f179d13ffd5f7b39e0c3a /setuptools/tests/test_dist.py
parent0e1c968f36a5d6cf268fe3f1ffca9405bb99e20d (diff)
downloadexternal_python_setuptools-b8c2ae517db14b03dfba263aa66707ca67ecee8f.tar.gz
external_python_setuptools-b8c2ae517db14b03dfba263aa66707ca67ecee8f.tar.bz2
external_python_setuptools-b8c2ae517db14b03dfba263aa66707ca67ecee8f.zip
Rely on partial now that pattern makes sense
Diffstat (limited to 'setuptools/tests/test_dist.py')
-rw-r--r--setuptools/tests/test_dist.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/tests/test_dist.py b/setuptools/tests/test_dist.py
index 47c2de3e..a9837b16 100644
--- a/setuptools/tests/test_dist.py
+++ b/setuptools/tests/test_dist.py
@@ -5,6 +5,7 @@ from __future__ import unicode_literals
import io
import collections
import re
+import functools
from distutils.errors import DistutilsSetupError
from setuptools.dist import (
_get_unpatched,
@@ -80,8 +81,7 @@ def __read_test_cases():
keywords=["one", "two"],
)
- def params(**update):
- return dict(base, **update)
+ params = functools.partial(dict, base)
test_cases = [
('Metadata version 1.0', params()),