Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

QMTest plans


  • To: qmtest@xxxxxxxxxxxxxxxx
  • Subject: QMTest plans
  • From: Rodrigo Belem <rclbelem@xxxxxxxxxxxx>
  • Date: Fri, 30 Mar 2007 13:43:16 -0700 (PDT)

Hello everybody,



Does QMTest already support python2.5? If not, there are any plans to do this migration? I'm running Ubuntu feisty (7.04) and got errors related (I guess) to ExceptionTest class in qm/test/classes/python.py . Maybe the reason is the differences between the traceback format on python2.4 and python2.5, as you can see in the example below:


-- Traceback example on Python 2.4 --
Python 2.4.4 (#2, Mar 29 2007, 12:00:57)

[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> import qm.cmdline

>>> option_d = ('d', 'd_option', None, 'Option D Description')

>>> option_e = ('e', 'd_option', None, 'Option E Description')

>>> command_1 = ('create', 'Create an issue', 'name',

...              "This command will create an issue. _name_ is the"

...              " name of the issue to be created.",

...              [option_d, option_e])

>>> qm.cmdline.CommandParser('qmtrack', [], [command_1])

Traceback (most recent call last):

  File "<stdin>", line 1, in ?

  File "qm/cmdline.py", line 128, in __init__

    raise ValueError, \

ValueError: duplicate long command option --d_option

>>>




-- Traceback example on Python 2.5 --
Python 2.5 (release25-maint, Mar 29 2007, 11:14:31)

[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> import qm.cmdline

>>> option_d = ('d', 'd_option', None, 'Option D Description')

>>> option_e = ('e', 'd_option', None, 'Option E Description')

>>> command_1 = ('create', 'Create an issue', 'name',

...              "This command will create an issue. _name_ is the"

...              " name of the issue to be created.",

...              [option_d, option_e])

>>> qm.cmdline.CommandParser('qmtrack', [], [command_1])

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "qm/cmdline.py", line 129, in __init__

    "duplicate long command option --%s" % option[1]

ValueError: duplicate long command option --d_option

>>>




I'd like to contribute to qmtest and I think that the better way to start would be with small changes. Would you like to receive patches changing the code to use some PEPs (Python Enhancement Proposals)? My suggestions are the pep-0008[0], pep-0257[1], pep-0290[2]. And how about changing modules to use subprocess[3] as a command executer, and other similar changes?


BTW, any plans to release a new version? When?


REFERENCES
[0] http://www.python.org/dev/peps/pep-0008/

[1] http://www.python.org/dev/peps/pep-0257/

[2] http://www.python.org/dev/peps/pep-0290/

[3] http://docs.python.org/dev/lib/module-subprocess.html



Thanks,


Rodrigo.






__________________________________________________
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/