Adnan Umer added the comment:
Please ignore my above message. I accidentally added that here. Sorry :(
--
___
Python tracker
<https://bugs.python.org/issue35
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
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
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
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
Changes by Adnan Umer :
--
components: +IDLE
___
Python tracker
<http://bugs.python.org/issue21192>
___
___
Python-bugs-list mailing list
Unsubscribe: