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

Test failure on go tip #16

Closed
dchest opened this issue Mar 26, 2015 · 6 comments
Closed

Test failure on go tip #16

dchest opened this issue Mar 26, 2015 · 6 comments

Comments

@dchest
Copy link
Contributor

dchest commented Mar 26, 2015

https://travis-ci.org/gorilla/feeds/jobs/55587220

Diffs between "got" and "expected":

diff --git a/1.txt b/2.txt
index 4894da0..1f6f674 100644
--- a/1.txt
+++ b/2.txt
@@ -1,4 +1,4 @@
-               <?xml version="1.0" encoding="UTF-8"?><feed>
+               <?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom">
                  <title>jmoiron.net blog</title>
                  <id>http://jmoiron.net/blog</id>
                  <updated>2013-01-16T21:52:35-05:00</updated>

Do you think it's a bug in feeds, tests, or Go? I suspect these changes has something to do with it:

@kisielk
Copy link
Contributor

kisielk commented Aug 7, 2015

Sorry for taking so long to get to this, I've kind of neglected the feeds package....

This is because Go 1.5 / tip now supports the xmlns attribute.

@kisielk
Copy link
Contributor

kisielk commented Aug 7, 2015

Not sure of the best way to fix it, short of doing a proper XML diff and ignoring that element, or writing different tests for 1.5. Or not testing on 1.4 and earlier (which seems like a bit premature...)

@elithrar
Copy link
Contributor

elithrar commented Aug 8, 2015

I think just going for separate tests (via runtime.Version() or using
build flags) will probably do. Pre 1.4 builds are likely to be around for a
while in most current Linux distros (Ubuntu 15.04 is 1.3.1) so we should
try to keep it around. I'll take a look at updating the test shortly.

On Fri, Aug 7, 2015 at 1:33 PM Kamil Kisiel [email protected]
wrote:

Not sure of the best way to fix it, short of doing a proper XML diff and
ignoring that element, or writing different tests for 1.5. Or not testing
on 1.4 and earlier (which seems like a bit premature...)


Reply to this email directly or view it on GitHub
#16 (comment).

@kisielk
Copy link
Contributor

kisielk commented Aug 8, 2015

The weird thing is tests seem to be passing now with the go1.5 Rc...

@elithrar
Copy link
Contributor

elithrar commented Aug 8, 2015

That'd be due to this: golang/go@c0d6d33 (they reverted the changes)

Hence you can probably close it until we see a update to golang/go#11841 (I've subscribed to the issue on that)

@kisielk
Copy link
Contributor

kisielk commented Aug 8, 2015

Ah I see, makes sense. I haven't been following the XML story in encoding/xml since I've mostly been using https://github.com/beevik/etree

Good to know they're going to take a serious look at it though.

@kisielk kisielk closed this as completed Aug 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants