Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyperlink 19.0.0 breaks Twisted test suite #9619

Closed
twisted-trac opened this issue Apr 9, 2019 · 4 comments
Closed

Hyperlink 19.0.0 breaks Twisted test suite #9619

twisted-trac opened this issue Apr 9, 2019 · 4 comments

Comments

@twisted-trac
Copy link

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

@twisted-trac
Copy link
Author

twm's avatar @twm commented

Apparently this breakage was anticipated: python-hyper/hyperlink#39

@twisted-trac
Copy link
Author

twm's avatar @twm commented

PR here: #1125

@twisted-trac
Copy link
Author

glyph's avatar @glyph set owner to @glyph

Looks correct. Will merge when CI is happy.

@twisted-trac
Copy link
Author

glyph's avatar @glyph set status to closed

In changeset 5facfd7

#!CommitTicketReference repository="" revision="5facfd753b9d3e7a26d9a59acf43ded05084ccdc"
Merge pull request #1125 from twisted/9619-test-hyperlink-less

Author: twm

Reviewer: glyph

Fixes: ticket:9619

Make tests pass again by deleting an old twisted.python.url test; this is now hyperlink's job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants