5 | | It seems like we should remove the fragment when we verify the current URL. |
| 5 | It seems like we should remove the fragment when we verify the current URL: |
| 6 | {{{#!diff |
| 7 | diff --git a/trac/tests/functional/tester.py b/trac/tests/functional/tester.py |
| 8 | --- a/trac/tests/functional/tester.py |
| 9 | +++ b/trac/tests/functional/tester.py |
| 10 | @@ -147,7 +147,9 @@ class FunctionalTester(object): |
| 11 | tc.formvalue('propertyform', 'comment', comment) |
| 12 | tc.submit("submit") |
| 13 | # Verify we're where we're supposed to be. |
| 14 | - tc.url(self.url + '/ticket/%s#comment:.*' % ticketid) |
| 15 | + # The fragment is present up to 2.7, see: |
| 16 | + # http://trac.edgewall.org/ticket/9990#comment:18 |
| 17 | + tc.url(self.url + '/ticket/%s(?:#comment:.*)?$' % ticketid) |
| 18 | return comment |
| 19 | |
| 20 | def attach_file_to_ticket(self, ticketid, data=None, tempfilename=None, |
| 21 | }}} |
| 22 | With this fix, all tests pass on 2.7.1 as well. |