ianorlin | hmm do we know when the iso.qa.ubuntu.com will come back | 03:45 |
---|---|---|
=== chihchun_afk is now known as chihchun | ||
pitti | elopio: fixed bug 1468868 FYI | 07:16 |
ubot5 | bug 1468868 in autopkgtest (Ubuntu) "Selftests print a lot of messages about time stamps in the future" [Low,Fix committed] https://launchpad.net/bugs/1468868 | 07:16 |
elopio | pitti: ^_^ | 07:18 |
elopio | thanks. | 07:18 |
Saviq | elopio, hey, can I steal you for a moment? | 14:40 |
davmor2 | Saviq: I'm keeping my eye on you, if he is not returned in pristine condition you're in for it ;) | 14:47 |
Saviq | davmor2, he never showed up! | 14:48 |
davmor2 | I have much to learn elopio oh wise one | 14:48 |
elopio | Saviq: hello. | 14:49 |
elopio | how can I help you> | 14:49 |
elopio | ? | 14:49 |
Saviq | elopio, hey | 14:50 |
Saviq | elopio, so, given a class http://pastebin.ubuntu.com/11841840/ | 14:51 |
Saviq | elopio, how do I mock BaseClass so that I can verify BaseClass.__init__ was called with the correct args? | 14:51 |
Saviq | I started looking at replacing __bases__, but not totally happy with that, there must be a better way :) | 14:53 |
elopio | Saviq: can't you use patch.object(BaseClass, __init__) ? | 14:54 |
Saviq | elopio, hmm trying | 14:54 |
elopio | Saviq: let me search a little too. | 14:57 |
Saviq | elopio, yup, that woked | 14:57 |
elopio | oh, awesome :) | 14:57 |
Saviq | elopio, nope, that works great, thanks! /me not fluent with mock yet | 14:57 |
Saviq | elopio, hah, that works for py34, not for py27 or pypy - those complain about "must by type, not classobj" | 15:05 |
Saviq | elopio, if I don't use super but call BaseClass().__init__ it's fine, but super must be doing something special | 15:06 |
Saviq | or I'm calling super wrong... | 15:08 |
Saviq | huh | 15:10 |
Saviq | aha, it's an old-style class in py2... | 15:12 |
Saviq | ok, so it wasn't super() for a reason | 15:12 |
Saviq | elopio, unping, base was an old-style class | 15:13 |
elopio | Saviq: the problem is clearly in trying to support py2, just drop that :) | 15:14 |
Saviq | elopio, indeed ;) | 15:14 |
=== chihchun is now known as chihchun_afk | ||
=== boiko_ is now known as boiko | ||
=== la_juyis` is now known as la_juyis |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!