Skip to content

Hyperlink 19.0.0 breaks Twisted test suite #9619

@twisted-trac

Description

@twisted-trac
twm's avatar @twm reported
Trac ID trac#9619
Type release blocker: regression
Created 2019-04-09 05:33:34Z
Branch https://github.com/twisted/twisted/tree/9619-test-hyperlink-less

All the buildbots are failing like so:

Traceback (most recent call last):
  File "c:\buildslave\windows7-64-py2_7-coverage\twisted\build\py27-alldeps-withcov-windows\lib\site-packages\twisted\python\test\test_url.py", line 486, in test_parseEqualSignInParamValue
    self.assertEqual(u.asText(), 'http://localhost/?=x%3Dx%3Dx')
  File "c:\buildslave\windows7-64-py2_7-coverage\twisted\build\py27-alldeps-withcov-windows\lib\site-packages\twisted\trial\_synctest.py", line 432, in assertEqual
    super(_Assertions, self).assertEqual(first, second, msg)
  File "c:\python27\Lib\unittest\case.py", line 513, in assertEqual
    assertion_func(first, second, msg=msg)
  File "c:\python27\Lib\unittest\case.py", line 924, in assertMultiLineEqual
    self.fail(self._formatMessage(msg, standardMsg))
twisted.trial.unittest.FailTest: u'http://localhost/?=x=x=x' != u'http://localhost/?=x%3Dx%3Dx'
- http://localhost/?=x=x=x
?                     ^ ^
+ http://localhost/?=x%3Dx%3Dx
?                     ^^^ ^^^

Hyperlink 19.0.0 was just released... it changes the handling of this specific URL:

$ hyper18/bin/python url.py
http://localhost?=x=x=x -> http://localhost/?=x%3Dx%3Dx
$ hyper19/bin/python url.py
http://localhost?=x=x=x -> http://localhost/?=x=x=x
$ cat url.py
from hyperlink import URL

text = u'http://localhost?=x=x=x'
print(u'{} -> {}'.format(text, URL.fromText(text).asText()))  
Searchable metadata
trac-id__9619 9619
type__release_blocker__regression release blocker: regression
reporter__twm twm
priority__highest highest
milestone__None None
branch__9619_test_hyperlink_less 9619-test-hyperlink-less
branch_author__ 
status__closed closed
resolution__fixed fixed
component__core core
keywords__None None
time__1554788014936841 1554788014936841
changetime__1554795977276523 1554795977276523
version__None None
owner__glyph glyph

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions