bpo-36473: add maximum iteration check for dict .values() and .items() by thp · Pull Request #12619 · python/cpython

There seem to be some (temporary?) test failures in Azure Pipelines unrelated to the change, it is possible to trigger a re-build?

(Edit: Force-pushed the amended commit now to trigger a rebuild.)

======================================================================
FAIL: test_unwritable_directory (test.test_import.PycacheTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vsts/work/1/s/Lib/test/test_import/__init__.py", line 822, in test_unwritable_directory
    self.assertFalse(os.path.exists(pyc_path),
AssertionError: True is not false : bytecode file '__pycache__/@test_838_tmp.cpython-38.pyc' for '@test_838_tmp' exists

...

======================================================================
FAIL: test_open_mode (test.test_pathlib.PosixPathTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vsts/work/1/s/Lib/test/test_pathlib.py", line 2109, in test_open_mode
    self.assertEqual(stat.S_IMODE(st.st_mode), 0o644)
AssertionError: 438 != 420

...

======================================================================
FAIL: test_touch_mode (test.test_pathlib.PosixPathTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vsts/work/1/s/Lib/test/test_pathlib.py", line 2121, in test_touch_mode
    self.assertEqual(stat.S_IMODE(st.st_mode), 0o644)
AssertionError: 438 != 420

...

======================================================================
FAIL: test_file_mode (test.test_tarfile.Bz2StreamWriteTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vsts/work/1/s/Lib/test/test_tarfile.py", line 1420, in test_file_mode
    self.assertEqual(mode, 0o644, "wrong file permissions")
AssertionError: 438 != 420 : wrong file permissions

...

======================================================================
FAIL: test_file_mode (test.test_tarfile.GzipStreamWriteTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vsts/work/1/s/Lib/test/test_tarfile.py", line 1420, in test_file_mode
    self.assertEqual(mode, 0o644, "wrong file permissions")
AssertionError: 438 != 420 : wrong file permissions

...

======================================================================
FAIL: test_file_mode (test.test_tarfile.LzmaStreamWriteTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vsts/work/1/s/Lib/test/test_tarfile.py", line 1420, in test_file_mode
    self.assertEqual(mode, 0o644, "wrong file permissions")
AssertionError: 438 != 420 : wrong file permissions

...

======================================================================
FAIL: test_file_mode (test.test_tarfile.StreamWriteTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vsts/work/1/s/Lib/test/test_tarfile.py", line 1420, in test_file_mode
    self.assertEqual(mode, 0o644, "wrong file permissions")
AssertionError: 438 != 420 : wrong file permissions

...

======================================================================
FAIL: test_mode (test.test_os.MakedirTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vsts/work/1/s/Lib/test/test_os.py", line 1157, in test_mode
    self.assertEqual(os.stat(parent).st_mode & 0o777, 0o775)
AssertionError: 511 != 509