A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-April/111011.html below:

[Python-Dev] Socket servers in the test suite

[Python-Dev] Socket servers in the test suite [Python-Dev] Socket servers in the test suiteVinay Sajip vinay_sajip at yahoo.co.uk
Thu Apr 28 09:23:43 CEST 2011
Nick Coghlan <ncoghlan <at> gmail.com> writes:

> If you poke around in the test directory a bit, you may find there is
> already some code along these lines in other tests (e.g. I'm pretty
> sure the urllib tests already fire up a local server). Starting down
> the path of standardisation of that test functionality would be good.

I have poked around, and each test module pretty much does its own thing.
Perhaps that's unavoidable; I'll try and see if there are usable common patterns
in the specific instances.
 
> For larger components like this, it's also reasonable to add a
> dedicated helper module rather than using test.support directly. I
> started (and Antoine improved) something along those lines with the
> test.script_helper module for running Python subprocesses and checking
> their output, although it lacks documentation and there are lots of
> older tests that still use subprocess directly.

Yes, I thought perhaps it was too specialised for adding to test.support itself.

Thanks for the feedback,

Vinay

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4