File: tests.txt

package info (click to toggle)
multiprocess 0.70.17-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 9,900 kB
  • sloc: python: 70,095; ansic: 7,509; makefile: 16
file content (44 lines) | stat: -rw-r--r-- 1,499 bytes parent folder | download | duplicates (38)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.. include:: header.txt

Tests and Examples
==================

`processing` contains a `test` sub-package which contains unit tests
for the package.  You can do a test run by doing ::

    python -m processing.tests

on Python 2.5 or ::

    python -c "from processing.tests import main; main()"
 
on Python 2.4.  This will run many of the tests using processes,
threads, and processes with a manager.

The `example` sub-package contains the following modules:

     `ex_newtype.py <../examples/ex_newtype.py>`_
         Demonstration of how to create and use customized managers
         and proxies.

     `ex_pool.py <../examples/ex_pool.py>`_
         Test of the `Pool` class which represents a process pool.
      
     `ex_synchronize.py <../examples/ex_synchronize.py>`_
         Test of synchronization types like locks, conditions and queues.

     `ex_workers.py <../examples/ex_workers.py>`_
         A test showing how to use queues to feed tasks to a
         collection of worker process and collect the results.

     `ex_webserver.py <../examples/ex_webserver.py>`_
         An example of how a pool of worker processes can each 
         run a `SimpleHTTPServer.HttpServer` instance
         while sharing a single listening socket.

     `benchmarks.py <../examples/benchmarks.py>`_
         Some simple benchmarks comparing `processing` with `threading`.

.. _Prev: programming-guidelines.html
.. _Up: index.html
.. _Next: tests.html