diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-04-19 20:59:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-19 20:59:51 (GMT) |
commit | 1e62bf145b4865d03a29a5720a4eb84c321a9829 (patch) | |
tree | ad044e2a1c08a2686ece7b7a9951105ff76e6df7 /Lib/test | |
parent | 66bffd1663489d080349debbf1b472d432351038 (diff) | |
download | cpython-1e62bf145b4865d03a29a5720a4eb84c321a9829.zip cpython-1e62bf145b4865d03a29a5720a4eb84c321a9829.tar.gz cpython-1e62bf145b4865d03a29a5720a4eb84c321a9829.tar.bz2 |
bpo-30030: Revert f50354ad (tempfile) (#1187)
Revert f50354adaaafebe95ad09d09b825804a686ea843: it introduced a
regression in test_threadedtempfile.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_tempfile.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py index 367e48d..51df1ec 100644 --- a/Lib/test/test_tempfile.py +++ b/Lib/test/test_tempfile.py @@ -1,5 +1,4 @@ # tempfile.py unit tests. -import collections.abc import tempfile import errno import io @@ -291,9 +290,9 @@ class TestGetCandidateNames(BaseTestCase): """Test the internal function _get_candidate_names.""" def test_retval(self): - # _get_candidate_names returns an iterator + # _get_candidate_names returns a _RandomNameSequence object obj = tempfile._get_candidate_names() - self.assertIsInstance(obj, collections.abc.Iterator) + self.assertIsInstance(obj, tempfile._RandomNameSequence) def test_same_thing(self): # _get_candidate_names always returns the same object |