nose-devs/nose — Issue #417: syntax error under python2.3
Author: jpellerin
Created: 2011-12-14 16:10:54+00:00
State: open

Older versions of python don't have the "from x import ()" syntax.

There's actually no need for the complicated syntax here, since the import statement does the desired assignment.

--- a/nose/plugins/multiprocess.py Mon Apr 25 14:07:00 2011 -0500
+++ b/nose/plugins/multiprocess.py Mon Apr 25 17:16:02 2011 -0700
@@ -139,11 +139,7 @@
def _import_mp():
global Process, Queue, Pool, Event, Value, Array
try:
- from multiprocessing import (Process as Process_, Queue as Queue_,
- Pool as Pool_, Event as Event_,
- Value as Value_, Array as Array_)
- Process, Queue, Pool, Event, Value, Array = (Process_, Queue_, Pool_,
- Event_, Value_, Array_)
+ from multiprocessing import Process, Queue, Pool, Event, Value, Array
except ImportError:
warn("multiprocessing module is not available, multiprocess plugin "
"cannot be used", RuntimeWarning)

Google Code Info:
Issue #: 414
Author: workitha...@gmail.com
Created On: 2011-04-26T00:18:10.000Z
Closed On: 2011-04-26T15:00:26.000Z