Edgewall Software

Changes between Initial Version and Version 1 of Ticket #12604, comment 1


Ignore:
Timestamp:
Oct 7, 2016, 11:07:09 AM (8 years ago)
Author:
Jun Omae

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12604, comment 1

    initial v1  
    11Proposed changes in [96864b590/jomae.git] ([log:jomae.git@t12604]).
     2
     3After the changes:
     4{{{#!pycon
     5>>> from trac.test import EnvironmentStub
     6>>> from trac.ticket.model import Ticket
     7>>> env = EnvironmentStub()
     8>>> t = Ticket(env, 'id')
     9Traceback (most recent call last):
     10  File "<stdin>", line 1, in <module>
     11  File "trac/ticket/model.py", line 85, in __init__
     12    self._fetch_ticket(tkt_id)
     13  File "trac/ticket/model.py", line 126, in _fetch_ticket
     14    id=tkt_id), _("Invalid ticket number"))
     15trac.resource.ResourceNotFound: Ticket id does not exist.
     16}}}