/srv/irclogs.ubuntu.com/2016/03/22/#ubuntu-website.txt

dholbachgood morning08:26
davidcalledholbach: FAIL: runTest (md_importer.tests.test_link_rewrite.TestLinkRewrite) -> AssertionError: u'/en/file2/' != '/file2'09:14
davidcalleAny idea?09:14
davidcalle(hero tour changes)09:14
davidcalleThat rings a bell, but I don't remember what was going on09:16
davidcalledholbach: I'm going to trust your machine on this one :)09:52
dholbachdavidcalle, let me take a closer look first09:53
dholbachI just wanted to give you a first bit of feedback :)09:53
davidcalledholbach: alright09:54
dholbachdavidcalle, updated the MP10:23
dholbachand thanks for the review10:23
dholbachI know it was a bit hard to review since many individual changes came together in this branch10:23
davidcalledholbach: hah: AssertionError: u'/en/file2/' not found in ['/file2', '/en/file2']10:27
davidcalleInteresting =10:27
dholbachunicode vs str I guess10:28
dholbachbut bizarre that I don't see any of this happening here10:28
davidcalledholbach: yep, I think you should decode. Or encode. ;-)10:28
dholbachdecode().encode().decode().encode().decode().encode().decode().encode().decode().encode().decode().encode()10:29
davidcalledholbach: you missed an utf-8 somewhere10:29
davidcalledholbach: since you can't reproduce, let me try10:29
dholbachit's the .rar.zip.tgz.jar.sit.xpi.exe of the python world :-)10:29
dholbachdavidcalle, I think I know a cleaner way10:30
davidcalledholbach: we need a universal method "deencode" that loops over strings until it works10:30
dholbachin a big try/except statement10:31
davidcalleseveral nested try/except*10:32
dholbachI'm sure we can make it work! :)10:32
dholbachdavidcalle, ok, I'll let you try :)10:34
=== dpm_ is now known as dpm
davidcalledholbach: http://paste.ubuntu.com/15471176/10:48
davidcallewfm ^10:48
dholbachwow10:49
davidcalledholbach: startswith? :)10:49
dholbachI'll try your patch now and if it works, I'd say: ship it!10:51
dholbachthere should be a nicer way to see if two links lead to the same thing, but *shrug* let's move on10:52
dholbachdavidcalle, MP updated10:52
dholbachthanks for your help!10:52
davidcalledholbach: np, merged!10:55
=== dpm is now known as dpm-afk
=== nhandler_ is now known as nhandler

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!