openstackgerrit | Merged openstack/congress: Updated from global requirements https://review.openstack.org/305172 | 00:47 |
---|---|---|
openstackgerrit | Merged openstack/congress: Fix subscriber_list has no return value https://review.openstack.org/306234 | 00:47 |
openstackgerrit | Merged openstack/congress: Add keystoneauth1 to requirements.txt https://review.openstack.org/306239 | 00:47 |
openstackgerrit | Merged openstack/congress: Switch to Ceilometer tempest plugin https://review.openstack.org/305585 | 00:48 |
openstackgerrit | Eric K proposed openstack/congress: (un)subhandler for DSE2 https://review.openstack.org/285628 | 01:03 |
thinrichs | ekcs: you there? | 01:04 |
ekcs | hey thinrichs | 01:04 |
thinrichs | Quick question that's driving me crazy... | 01:04 |
thinrichs | I'm running the test2/api/test_datasource_model tests | 01:05 |
thinrichs | I'm getting an err message: DatasourceNotFound' object has no attribute 'message' | 01:05 |
thinrichs | So it seems like we're instantiating the DatasourceNotFound object (out of exceptions.py) | 01:05 |
thinrichs | and for some reason the 'message' attribute isn't being set properly. | 01:05 |
thinrichs | 'message' is set in the Exception class, which DatasourceNotFound inherits from (indirectly) | 01:06 |
thinrichs | Ever seen that before? | 01:06 |
ekcs | hmm not really. is it py34 or py27 or both? | 01:07 |
thinrichs | py3 for sure. didn't try py2 | 01:08 |
thinrichs | Hang on…I'd been running with python3 -m "nose", and saw the error. tox seems to not return an error. | 01:09 |
thinrichs | Hmmmm | 01:09 |
ekcs | hmmm. can I see the code that is raising/using the DatasourceNotFound exception? | 01:16 |
ekcs | I tried the following test case and didn’t get any errors | 01:16 |
ekcs | class PolicyFileTestCase(base.TestCase): | 01:17 |
ekcs | def test_datasourcenotfoundexception(self): | 01:17 |
ekcs | try: | 01:17 |
ekcs | raise exception.DatasourceNotFound('ekcs') | 01:17 |
ekcs | except exception.DatasourceNotFound as e: | 01:17 |
ekcs | print(e) | 01:17 |
ekcs | in python3 -m ‘nose' | 01:17 |
ekcs | Ah I have it now. If I do print(e.message) I get the error. But I get the same error with straigt Exception class. Maybe we’re just not supposed to access it like that. | 01:19 |
ekcs | trying tox now. | 01:20 |
ekcs | ah it’s a python2 vs 3 thing. ok in 2, not ok in 3. | 01:20 |
*** thinrichs has quit IRC | 01:22 | |
*** ekcs has quit IRC | 02:07 | |
*** thinrichs has joined #congress | 03:15 | |
*** thinrichs has quit IRC | 04:21 | |
*** banix has quit IRC | 04:57 | |
*** BitSmith has joined #congress | 12:05 | |
*** banix has joined #congress | 13:19 | |
*** banix has quit IRC | 16:05 | |
*** banix has joined #congress | 16:13 | |
*** BitSmith is now known as [BitSmith] | 16:29 | |
*** banix has quit IRC | 16:43 | |
*** [BitSmith] is now known as BitSmith | 17:11 | |
*** BitSmith is now known as [BitSmith] | 17:11 | |
*** [BitSmith] is now known as BitSmith | 17:15 | |
*** BitSmith is now known as [BitSmith] | 17:15 | |
*** [BitSmith] has quit IRC | 21:46 | |
*** jasonsb has joined #congress | 22:08 | |
*** banix has joined #congress | 22:56 | |
*** banix has quit IRC | 23:01 | |
*** BitSmith has joined #congress | 23:29 | |
*** BitSmith is now known as [BitSmith] | 23:41 | |
*** [BitSmith] is now known as BitSmith | 23:51 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!