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
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
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
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
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
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
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
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
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
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
10 matches
Mail list logo