[issue19586] Remove assertEquals and assert_ deprecation warnings

2013-11-14 Thread Gregory Salvan
New submission from Gregory Salvan: Replace assertEquals by assertEqual and assert_ by assertTrue to remove tests deprecation warning. It's few, but it's a first step to make contributions. -- components: Distutils, Distutils2 files: distutil.patch keywords: patch messages: 202863

[issue19586] distutils: Remove assertEquals and assert_ deprecation warnings

2013-11-14 Thread Gregory Salvan
Gregory Salvan added the comment: Do I suggest the patch to issue16510 and close this one ? -- components: +Tests ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19586

[issue19586] distutils: Remove assertEquals and assert_ deprecation warnings

2013-11-16 Thread Gregory Salvan
Gregory Salvan added the comment: nice if it helps. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19586 ___ ___ Python-bugs-list mailing list

[issue19630] marshal.dump cannot write to temporary file

2013-11-17 Thread Gregory Salvan
Gregory Salvan added the comment: I can't reproduce this issue (on linux). Are you sure you've necessary rights to write to tempdir ? -- nosy: +Gregory.Salvan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19630

[issue19630] marshal.dump cannot write to temporary file

2013-11-17 Thread Gregory Salvan
Gregory Salvan added the comment: Sorry I don't have windows to test. Try to set the temporary directory to a path you're sure you've rights, either by setting tempfile.tempdir (http://docs.python.org/2/library/tempfile.html#tempfile.tempdir) or by adding the argument dir=C:\\user\path

[issue19645] Improving unittest assertions

2013-11-18 Thread Gregory Salvan
New submission from Gregory Salvan: Actually unittest assertions depends on testcase class forcing us to extend it to add assertions and to use it to make assertions outside tests. Seeing interests in rethinking the way assertions are done in unittest, this issue first intent to collect

[issue19645] decouple unittest assertions from the TestCase class

2013-11-19 Thread Gregory Salvan
Gregory Salvan added the comment: issue18054 : - adding assertCleanError in the ipaddress module, - suggesting assertCleanTraceback, assertRaisedFrom in unittest - usefull but TestCase has already a wide api. A solution like Testtools assertThat with matcher protocol (https

[issue22268] mrohasattr and mrogetattr

2014-08-24 Thread Gregory Salvan
New submission from Gregory Salvan: It's a small refactoring. Lurking at collections.abc I found a lot of: any(attr in B.__dict__ for B in C.__mro__) also repeated in typing.py of mypy: https://github.com/JukkaL/mypy/blob/master/lib-typing/3.2/typing.py#L117 It seems to be a common

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-08-25 Thread Gregory Salvan
Gregory Salvan added the comment: In case it helps, I've experienced a similar refactoring. we used a pattern of stages and services: - stages represent a state of the application (like Pre-Initialization, Initializing, Initialized...), they are composed of services - services represent a key

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-08-31 Thread Gregory Salvan
Gregory Salvan added the comment: I didn't dare to share this but in case... just few days after my message I fall on the inspiring work of Dr. Hans Vandierendonck (presented during the 2nd International Summer School on Advances in Programming Languages in Edinburgh). Certainly too much