*** tpb has joined #timvideos | 00:00 | |
*** mithro-work has joined #timvideos | 01:49 | |
mithro-work | morning people | 01:51 |
---|---|---|
CarlFK | hi mithro-work | 01:57 |
mithro-work | CarlFK, where are at with the Atlys board? You just get a black screen atm right? | 02:02 |
CarlFK | right | 02:03 |
CarlFK | mplayer showed green, which you said was "no picture" | 02:03 |
mithro-work | okay | 02:07 |
*** Jahanzeb has quit IRC | 02:42 | |
*** mithro has joined #timvideos | 04:24 | |
*** shenki_ is now known as shenki | 04:33 | |
*** hyades has joined #timvideos | 04:38 | |
mithro-work | hello hyades | 04:38 |
hyades | hi | 04:38 |
mithro-work | hyades, getting 100% coverage is definitely possible | 04:38 |
hyades | yeah got it for server.py | 04:39 |
mithro-work | hyades, for all code | 04:39 |
*** mithro has quit IRC | 04:39 | |
hyades | look at this: | 04:39 |
hyades | https://github.com/hyades/gst-switch/blob/python-api/python-api/gstswitch/connection.py#L115 | 04:39 |
tpb | <http://ln-s.net/-YxX> (at github.com) | 04:39 |
hyades | here should i mock Gio.DBusConnection.new_for_address_sync | 04:40 |
hyades | ? | 04:40 |
mithro-work | yes correct | 04:40 |
hyades | yeah then its possible :) | 04:40 |
mithro-work | in unittests that should be mocked, in integration tests it shouldn't be | 04:40 |
hyades | yeah..okay | 04:41 |
mithro-work | hyades, that is the major difference between unit and integration tests | 04:42 |
mithro-work | in unittests you shouldn't be calling external depedencies | 04:42 |
hyades | and if there is any dependency, we mock it | 04:43 |
mithro-work | hyades, in unittests, yes | 04:44 |
CarlFK | mithro-work: any opinion of the various moc libraries ? | 04:48 |
mithro-work | CarlFK, not hugely | 04:49 |
*** mithro has joined #timvideos | 10:27 | |
*** mithro has quit IRC | 11:00 | |
*** bananadine has joined #timvideos | 11:21 | |
bananadine | hello mithro-work | 11:32 |
*** mithro has joined #timvideos | 11:56 | |
bananadine | mithro will we have a weekly video chat? | 12:06 |
mithro | bananadine, sorry yes | 12:06 |
mithro | but it'll have to be later in the week | 12:06 |
bananadine | oh ok | 12:06 |
bananadine | is friday good for you? | 12:06 |
mithro | Nope | 12:45 |
mithro | how about tomorrow or Thursday? | 12:45 |
bananadine | alright | 13:05 |
bananadine | same time as we used to have on monday? | 13:06 |
*** hyades has quit IRC | 13:06 | |
*** hyades has joined #timvideos | 13:47 | |
*** hyades has quit IRC | 14:05 | |
*** hyades has joined #timvideos | 14:12 | |
*** mithro has quit IRC | 14:16 | |
*** bananadine has quit IRC | 14:24 | |
*** hyades has quit IRC | 14:35 | |
*** hyades has joined #timvideos | 15:05 | |
*** Jahanzeb has joined #timvideos | 15:11 | |
*** parx has quit IRC | 15:12 | |
*** Jahanzeb has quit IRC | 15:37 | |
*** mithro has joined #timvideos | 16:27 | |
*** mithro has quit IRC | 17:08 | |
*** hyades has quit IRC | 17:16 | |
*** hyades has joined #timvideos | 17:35 | |
*** hyades has quit IRC | 18:13 | |
*** hyades has joined #timvideos | 18:19 | |
*** iiie0 has joined #timvideos | 18:19 | |
hyades | hey CarlFK | 18:39 |
*** hyades has quit IRC | 18:58 | |
*** hyades has joined #timvideos | 19:05 | |
iiie0 | Hey hyades, how are you today? | 19:32 |
hyades | hey | 19:32 |
hyades | iiie, morning for you too? | 19:41 |
iiie0 | nearing one pm here (PDT) | 19:41 |
hyades | oh | 19:42 |
iiie0 | We have one mentor, one student and one admin in CDT, one mentor in PDT, one admin in Australia, which takes us to 5 different time zones between the 3 mentors and three students :) | 19:49 |
* iiie0 goes to lunch | 19:50 | |
*** hyades has quit IRC | 19:52 | |
*** hyades has joined #timvideos | 20:08 | |
hyades | iiie0, hehe nice! | 20:10 |
hyades | http://pastebin.com/zkhWNkD5 | 20:24 |
tpb | Title: [Python] try: self.connection = Connection( address=self. - Pastebin.com (at pastebin.com) | 20:24 |
hyades | is such a thing needed ? | 20:24 |
hyades | such kinds of except and raise | 20:25 |
*** hyades_ has joined #timvideos | 20:40 | |
*** hyades_ has quit IRC | 20:41 | |
*** hyades has quit IRC | 20:42 | |
*** hyades_ has joined #timvideos | 20:43 | |
*** hyades_ has quit IRC | 20:46 | |
*** hyades_ has joined #timvideos | 20:47 | |
*** hyades_ has quit IRC | 20:47 | |
*** hyades_ has joined #timvideos | 20:48 | |
*** hyades_ has quit IRC | 20:49 | |
iiie0 | In case someone checks the scrollback... what the code does is catch an exception and then raise it again. | 21:18 |
iiie0 | All that does is not call connect_dbus if there is a value error in the setup, but connection error is caught too. | 21:19 |
iiie0 | So no I'd say that it doesn't help as it still raise the same exception. | 21:20 |
*** hyades has joined #timvideos | 21:20 | |
CarlFK | iiie0: if there isn't a try above it, the stack will stop at the raise, right ? | 21:21 |
CarlFK | the stack dump | 21:22 |
iiie0 | raise in an except raises the caught exception, try ... except is the only place a bare raise will work | 21:22 |
CarlFK | so th stack dump will go all the way to where the real error is? | 21:26 |
iiie0 | It should yes, same as "raise e" | 21:26 |
CarlFK | ok, never mind me | 21:27 |
CarlFK | All that does is not call connect_dbus if .... | 21:28 |
hyades | then no use of ? | 21:28 |
CarlFK | that won't happen if you remove the try, right? | 21:28 |
hyades | everything inside the try handles exceptions pretty well | 21:29 |
hyades | so only two possible exceptions can come out of that try block | 21:29 |
iiie0 | er, no, two exceptions go to the except and then are raised again, all others "bubble up" without first running the shown except block | 21:33 |
iiie0 | if the except said pass then yes those two exceptions would be ignored and the rest raised | 21:33 |
hyades | i cannot think of a test case which will make it go into except :) | 21:34 |
iiie0 | dbus broken on the the box, any of address, bus_name, object_path, or default_interface not existing on self, or if there is logic in Connection.__init__ anything that could raise ValueError there | 21:35 |
* iiie0 breaks things from time to time | 21:36 | |
CarlFK | iiie0: but there isn't anything in the except block, so don't both cases bubble up just the same ? | 21:36 |
iiie0 | yes externally they'll look the same, the try ... except does nothing functional | 21:36 |
CarlFK | that's what I was wondering.. I think hyades too | 21:37 |
iiie0 | right, sorry, meant by it doesn't help | 21:38 |
*** hyades has quit IRC | 21:40 | |
CarlFK | you can't make it to PyOhio this Sat, right ? | 21:41 |
CarlFK | 4 rooms, Danial Peters and me are the only one with any experience | 21:41 |
*** hyades has joined #timvideos | 21:43 | |
hyades | my crap internet | 21:44 |
hyades | logs so useful for me :D | 21:45 |
iiie0 | CarlFK, no way too much going on | 22:29 |
iiie0 | CarlFK, I'm up for helping out some with streaming though | 22:31 |
iiie0 | on that note, I have to run | 22:31 |
CarlFK | see ya | 22:31 |
iiie0 | hyades, yeah I love the logs | 22:31 |
*** iiie0 has quit IRC | 22:32 | |
* hyades goes to sleep before its morning | 22:32 | |
*** parx has joined #timvideos | 23:31 | |
*** hyades has quit IRC | 23:38 | |
*** hyades has joined #timvideos | 23:39 |
Generated by irclog2html.py 2.12.1 by Marius Gedminas - find it at mg.pov.lt!