Tomoki Imai added the comment:
I'm a student thinking of participating in Google Summer of Code.
And want to work to create a unittest for IDLE.
Using unittest.mock seemed to be good way to test GUI.
But there is a problem.
There is no unittest.mock in Python2.
http://docs.python.org/2/li
Tomoki Imai added the comment:
NO,this thread should not be closed!
This is IDLE Bug.I found, IDLE has issue in using unicode literal.
In normal interpreter in console.
>>> u"こんにちは"
u'\u3053\u3093\u306b\u3061\u306f'
In IDLE.
>>> u"こんにちは"
u'
Tomoki Imai added the comment:
Thanks.
I noticed Terry used python3 to confirm this problem...
I am Japanese, but using English environment.
Here is my locale settings. And I'm using Linux.
konomi:tomoki% locale
LANG=en_US.utf8
LC_CTYPE=en_US.
Tomoki Imai added the comment:
Sorry.I forgot to note my environment.
I'm using Arch Linux.
$ uname -a
Linux manaka 3.8.7-1-ARCH #1 SMP PREEMPT Sat Apr 13 09:01:47 CEST 2013 x86_64
GNU/Linux
And python version is here.
$ python --version
Python 2.7.4
IDLE's version is same, 2.7.4
Tomoki Imai added the comment:
Oh, no support for Python2?
I think, it is too old, but still needs bug-fix supports.
IDLE for Python2 is really buggy.
For example, unicode problems in my environment.
http://bugs.python.org/issue17348
It might be GUI related problem.
By the way, your proposal
Tomoki Imai added the comment:
I have already posted idle_dev mailing list (and, no one replied :P).
I think, Ezio's suggestion is good if we will work for Python2.
Using unittest.mock and mock to support Python2 and Python3.
My proposal for GSoC is here.
Making very initial version for Py