[issue42019] Override MagicMock special methods

2020-10-15 Thread Aristotelis Mikropoulos


Aristotelis Mikropoulos  added the comment:

Yep, I had figured out myself that those stub methods are being set during 
MagicMock's __init__, thanks for answering anyway :)

--

___
Python tracker 
<https://bugs.python.org/issue42019>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42019] Override MagicMock special methods

2020-10-12 Thread Aristotelis Mikropoulos


New submission from Aristotelis Mikropoulos :

This is more of a question whether the following is intended behavior:
Subclassing unittest.mock.MagicMock and overriding one of the special (double 
underscore) methods has no effect. The default MagicMock method implementation 
still stands. This isn't the case with subclassing Mock.
It is understood that the purpose of MagicMock is to offer stub implementations 
of certain special methods, but isn't defining them yourself in the body of a 
subclass supposed to override those stubs?
There is an example in the file attached.

--
components: Tests
files: mockcase.py
messages: 378513
nosy: Indy
priority: normal
severity: normal
status: open
title: Override MagicMock special methods
type: behavior
versions: Python 3.9
Added file: https://bugs.python.org/file49510/mockcase.py

___
Python tracker 
<https://bugs.python.org/issue42019>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5533] unittest can't deal with packages

2009-03-21 Thread Aristotelis Mikropoulos

Aristotelis Mikropoulos  added the comment:

You are right, here is the file.

--
Added file: http://bugs.python.org/file13390/test

___
Python tracker 
<http://bugs.python.org/issue5533>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5533] unittest can't deal with packages

2009-03-21 Thread Aristotelis Mikropoulos

New submission from Aristotelis Mikropoulos :

There is a problem with unittest, as it cannot handle package imports.
This http://dpaste.com/17315/ proves it.

--
components: Library (Lib)
messages: 83945
nosy: Indy
severity: normal
status: open
title: unittest can't deal with packages
type: behavior
versions: Python 2.5

___
Python tracker 
<http://bugs.python.org/issue5533>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3159] glob.py improvements

2008-06-21 Thread Aristotelis Mikropoulos

New submission from Aristotelis Mikropoulos <[EMAIL PROTECTED]>:

Simplified some of the code, improving performance and readability.

--
components: Library (Lib)
files: glob.py.patch
keywords: patch
messages: 68493
nosy: Indy
severity: normal
status: open
title: glob.py improvements
type: performance
versions: Python 2.5
Added file: http://bugs.python.org/file10680/glob.py.patch

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3159>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1778443] robotparser.py fixes

2008-06-17 Thread Aristotelis Mikropoulos

Aristotelis Mikropoulos <[EMAIL PROTECTED]> added the comment:

OK

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1778443>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1778443] robotparser.py fixes

2008-06-17 Thread Aristotelis Mikropoulos

Aristotelis Mikropoulos <[EMAIL PROTECTED]> added the comment:

Oh, I am sorry, I thought you were talking to me. Excuse me.

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1778443>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1778443] robotparser.py fixes

2008-06-17 Thread Aristotelis Mikropoulos

Aristotelis Mikropoulos <[EMAIL PROTECTED]> added the comment:

Yes, why not?

Actually, I am the original author of the patch, but I changed my
username like I said above (in a previous post).

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1778443>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1778443] robotparser.py fixes

2008-06-17 Thread Aristotelis Mikropoulos

Aristotelis Mikropoulos <[EMAIL PROTECTED]> added the comment:

Is the patch, now, in an acceptable format?

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1778443>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3078] tokenize.py improvements

2008-06-17 Thread Aristotelis Mikropoulos

Aristotelis Mikropoulos <[EMAIL PROTECTED]> added the comment:

So, will this patch be applied?

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3078>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1778443] robotparser.py fixes

2008-06-13 Thread Aristotelis Mikropoulos

Aristotelis Mikropoulos <[EMAIL PROTECTED]> added the comment:

Sure.

Added file: http://bugs.python.org/file10617/robotparser.py.patch

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1778443>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1778443] robotparser.py fixes

2008-06-12 Thread Aristotelis Mikropoulos

Aristotelis Mikropoulos <[EMAIL PROTECTED]> added the comment:

So, finally, will this patch be applied?

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1778443>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3078] tokenize.py improvements

2008-06-11 Thread Aristotelis Mikropoulos

New submission from Aristotelis Mikropoulos <[EMAIL PROTECTED]>:

Various tokenize.py performance boosts and code clarifications.

--
components: Library (Lib)
files: tokenize.py.patch
keywords: patch
messages: 67965
nosy: Indy
severity: normal
status: open
title: tokenize.py improvements
type: performance
versions: Python 2.5
Added file: http://bugs.python.org/file10581/tokenize.py.patch

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3078>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1778443] robotparser.py fixes

2007-12-28 Thread Aristotelis Mikropoulos

Aristotelis Mikropoulos added the comment:

Also, I would like to tell you that my new account name is "Indy", and
not "indy90" anymore (I changed since this issue tracker moved from
SourceForge to here). So, thanks again and I hope this patch will be
helpful.

_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1778443>
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1778443] robotparser.py fixes

2007-10-24 Thread Aristotelis Mikropoulos

Aristotelis Mikropoulos added the comment:

Yes, of course I meant spaces on both sides of ">=", it was just a typo
of mine. I am sorry. I am glad you recommend applying my patch. I hope
it helps.

--
nosy: +Indy

_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1778443>
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com