diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2021-01-16 19:45:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-16 19:45:30 (GMT) |
commit | 799722cb0ddb90752cde7798cab543f30623ebf2 (patch) | |
tree | 1a2b77e6a085b87be3cc8ebda21f9bdd90c41d35 /Lib/test/test_random.py | |
parent | 17c1f0c8cb96637c36548edf6e4570ac7564004b (diff) | |
download | cpython-799722cb0ddb90752cde7798cab543f30623ebf2.zip cpython-799722cb0ddb90752cde7798cab543f30623ebf2.tar.gz cpython-799722cb0ddb90752cde7798cab543f30623ebf2.tar.bz2 |
[3.9] bpo-42163, bpo-42189, bpo-42659: Support uname_tuple._replace (for all but processor) (GH-23010) (#24232)
* Add test capturing missed expectation with uname_result._replace.
* bpo-42163: Override uname_result._make to allow uname_result._replace to work (for everything but 'processor'.
* Replace hard-coded length with one derived from the definition.
* Add test capturing missed expectation with copy/deepcopy on namedtuple (bpo-42189).
* bpo-42189: Exclude processor parameter when constructing uname_result.
* In _make, rely on __new__ to strip processor.
* Add blurb.
* iter is not necessary here.
* Rely on num_fields in __new__
* Add test for slices on uname
* Add test for copy and pickle.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* import pickle
* Fix equality test after pickling.
* Simply rely on __reduce__ for pickling.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit a6fd0f414c0cb4cd5cc20eb2df3340b31c6f7743)
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Diffstat (limited to 'Lib/test/test_random.py')
0 files changed, 0 insertions, 0 deletions