New submission from Troulet-lambert Odile <>:

When patching an Exception with a side_effect to another exception, it seems 
like the exceiption arguments are not passed to the mock.

components: Tests
files: essai
messages: 356305
nosy: piscvau
priority: normal
severity: normal
status: open
title: mocking an exception, arguments do not seem to be passed to the mock
type: behavior
versions: Python 3.8
Added file:

Python tracker <>
Python-bugs-list mailing list

Reply via email to