[issue35500] Align expected and actual calls on mock.assert_called_with error message

2018-12-24 Thread Adnan Umer
Adnan Umer added the comment: Please ignore my above message. I accidentally added that here. Sorry :( -- ___ Python tracker <https://bugs.python.org/issue35

[issue35577] side_effect mocked method lose reference to instance

2018-12-24 Thread Adnan Umer
New submission from Adnan Umer : When a method/bounded function is mocked and side_effect is supplied to it, the side_effect function doesn't get the reference to the instance. Suppose we have something like this class SomeClass: def do_something(self, x): pass

[issue35500] Align expected and actual calls on mock.assert_called_with error message

2018-12-24 Thread Adnan Umer
Adnan Umer added the comment: When a method/bounded function is mocked and side_effect is supplied to it, the side_effect function doesn't get the reference to the instance. Suppose we have something like this class SomeClass: def do_something(self, x): pass def some_fun

[issue21192] Idle: Print filename when running a file from editor

2014-04-16 Thread Adnan Umer
Adnan Umer added the comment: I tried to replace RESTART by doing these little changing # PyShell.Py class ModifiedInterpreter(InteractiveInterpreter): def restart_subprocess(self, with_cwd=False, with_msg=True): ... if with_msg: halfbar = ((int(console.width

[issue21192] Idle: Print filename when running a file from editor

2014-04-10 Thread Adnan Umer
Adnan Umer added the comment: Method: runcode Class: ModifiedInterpreter Line: 752 Added if code.co_filename[0] != '<': self.tkconsole.write('Executing ' + code.co_filename + '\n') To print file path that is executed -- nosy: +Adnan.Umer

[issue21192] Idle: Print filename when running a file from editor

2014-04-09 Thread Adnan Umer
Changes by Adnan Umer : -- components: +IDLE ___ Python tracker <http://bugs.python.org/issue21192> ___ ___ Python-bugs-list mailing list Unsubscribe: