1. 18 Apr, 2019 6 commits
  2. 17 Apr, 2019 11 commits
  3. 16 Apr, 2019 5 commits
  4. 15 Apr, 2019 11 commits
  5. 14 Apr, 2019 5 commits
  6. 13 Apr, 2019 2 commits
    • Xtreak's avatar
      bpo-36593: Fix isinstance check for Mock objects with spec executed under tracing (GH-12790) · 830b43d0
      Xtreak authored
      In Python having a trace function in effect while mock is imported causes isinstance to be wrong for MagicMocks. This is due to the usage of super() in some class methods, as this sets the __class__ attribute. To avoid this, as a workaround, alias the usage of super .
      830b43d0
    • Pablo Galindo's avatar
      bpo-36427: Document that PyEval_RestoreThread and PyGILState_Ensure can... · fde9b33d
      Pablo Galindo authored
      bpo-36427: Document that PyEval_RestoreThread and PyGILState_Ensure can terminate the calling thread (GH-12541)
      
      Calling these function from a thread when the runtime is finalizing will terminate
      the thread, even if the thread was not created by Python. Users can use 
      _Py_IsFinalizing or sys.is_finalizing to check if the interpreter is in the process of
      being finalized before calling this function to avoid unwanted termination.
      fde9b33d