<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/python-systemd.git/systemd/test, branch v234</title>
<subtitle>github.com: systemd/python-systemd.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/'/>
<entry>
<title>journal: do not convert extra args to string in JournalHandler</title>
<updated>2017-03-19T19:07:59+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2017-03-19T19:03:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/commit/?id=2169cdea8d2850a8e4109b2d1f3980d44a361818'/>
<id>2169cdea8d2850a8e4109b2d1f3980d44a361818</id>
<content type='text'>
send() already does conversions in a type-specific way, and doing it
in journal handler would defeat those conversions. In particular, UUIDs
would be converted to early and have dashes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
send() already does conversions in a type-specific way, and doing it
in journal handler would defeat those conversions. In particular, UUIDs
would be converted to early and have dashes.
</pre>
</div>
</content>
</entry>
<entry>
<title>test_journal: add tests for MESSAGE_ID passing</title>
<updated>2017-03-19T19:06:19+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2017-03-19T17:12:20+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/commit/?id=aa5550a9b7bb6fc0297c2f1bcb404daed1496251'/>
<id>aa5550a9b7bb6fc0297c2f1bcb404daed1496251</id>
<content type='text'>
MESSAGE_ID passing was broken before previous commit:
TypeError: send() got multiple values for keyword argument 'MESSAGE_ID'

With the previous commit it's broken differently:

______________________________ test_journalhandler_message_id_on_handler _______________________________

    def test_journalhandler_message_id_on_handler():
        record = logging.LogRecord('test-logger', logging.INFO, 'testpath', 1, 'test', None, None)
        sender = MockSender()
        handler = journal.JournalHandler(logging.INFO, sender_function=sender.send,
                                         MESSAGE_ID=TEST_MID)
        handler.emit(record)
        assert len(sender.buf) == 1
&gt;       assert 'MESSAGE_ID=' + TEST_MID.hex in sender.buf[0]
E       assert ('MESSAGE_ID=' + '8441372f8dca4ca98694a6091fd8519f') in ['MESSAGE=test', 'MESSAGE_ID=8441372f-8dca-4ca9-8694-a6091fd8519f', 'CODE_FILE=testpath', 'CODE_LINE=1', 'name=test-logger', 'exc_info=None', ...]
E        +  where '8441372f8dca4ca98694a6091fd8519f' = UUID('8441372f-8dca-4ca9-8694-a6091fd8519f').hex

systemd/test/test_journal.py:116: AssertionError
______________________________ test_journalhandler_message_id_on_message _______________________________

    def test_journalhandler_message_id_on_message():
        record = logging.LogRecord('test-logger', logging.INFO, 'testpath', 1, 'test', None, None)
        record.__dict__['MESSAGE_ID'] = TEST_MID2
        sender = MockSender()
        handler = journal.JournalHandler(logging.INFO, sender_function=sender.send,
                                         MESSAGE_ID=TEST_MID)
        handler.emit(record)
        assert len(sender.buf) == 1
&gt;       assert 'MESSAGE_ID=' + TEST_MID2.hex in sender.buf[0]
E       assert ('MESSAGE_ID=' + '8441370000000000000000001fd85000') in ['MESSAGE=test', 'MESSAGE_ID=84413700-0000-0000-0000-00001fd85000', 'CODE_FILE=testpath', 'CODE_LINE=1', 'name=test-logger', 'exc_info=None', ...]
E        +  where '8441370000000000000000001fd85000' = UUID('84413700-0000-0000-0000-00001fd85000').hex

systemd/test/test_journal.py:135: AssertionError
============================ 2 failed, 53 passed, 6 skipped in 0.16 seconds ============================
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MESSAGE_ID passing was broken before previous commit:
TypeError: send() got multiple values for keyword argument 'MESSAGE_ID'

With the previous commit it's broken differently:

______________________________ test_journalhandler_message_id_on_handler _______________________________

    def test_journalhandler_message_id_on_handler():
        record = logging.LogRecord('test-logger', logging.INFO, 'testpath', 1, 'test', None, None)
        sender = MockSender()
        handler = journal.JournalHandler(logging.INFO, sender_function=sender.send,
                                         MESSAGE_ID=TEST_MID)
        handler.emit(record)
        assert len(sender.buf) == 1
&gt;       assert 'MESSAGE_ID=' + TEST_MID.hex in sender.buf[0]
E       assert ('MESSAGE_ID=' + '8441372f8dca4ca98694a6091fd8519f') in ['MESSAGE=test', 'MESSAGE_ID=8441372f-8dca-4ca9-8694-a6091fd8519f', 'CODE_FILE=testpath', 'CODE_LINE=1', 'name=test-logger', 'exc_info=None', ...]
E        +  where '8441372f8dca4ca98694a6091fd8519f' = UUID('8441372f-8dca-4ca9-8694-a6091fd8519f').hex

systemd/test/test_journal.py:116: AssertionError
______________________________ test_journalhandler_message_id_on_message _______________________________

    def test_journalhandler_message_id_on_message():
        record = logging.LogRecord('test-logger', logging.INFO, 'testpath', 1, 'test', None, None)
        record.__dict__['MESSAGE_ID'] = TEST_MID2
        sender = MockSender()
        handler = journal.JournalHandler(logging.INFO, sender_function=sender.send,
                                         MESSAGE_ID=TEST_MID)
        handler.emit(record)
        assert len(sender.buf) == 1
&gt;       assert 'MESSAGE_ID=' + TEST_MID2.hex in sender.buf[0]
E       assert ('MESSAGE_ID=' + '8441370000000000000000001fd85000') in ['MESSAGE=test', 'MESSAGE_ID=84413700-0000-0000-0000-00001fd85000', 'CODE_FILE=testpath', 'CODE_LINE=1', 'name=test-logger', 'exc_info=None', ...]
E        +  where '8441370000000000000000001fd85000' = UUID('84413700-0000-0000-0000-00001fd85000').hex

systemd/test/test_journal.py:135: AssertionError
============================ 2 failed, 53 passed, 6 skipped in 0.16 seconds ============================
</pre>
</div>
</content>
</entry>
<entry>
<title>journal: rename SENDER_FUNCTION to sender_function</title>
<updated>2017-03-19T17:28:15+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2017-03-19T16:59:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/commit/?id=84371c2cfda49483f6dabc6bb85cb0131df1053e'/>
<id>84371c2cfda49483f6dabc6bb85cb0131df1053e</id>
<content type='text'>
Let's not try to make it look like a journal field. It should
be a normal parameter.

Followup for dce0a855c3281e7051b1cbe0f73386d1c90ef320.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Let's not try to make it look like a journal field. It should
be a normal parameter.

Followup for dce0a855c3281e7051b1cbe0f73386d1c90ef320.
</pre>
</div>
</content>
</entry>
<entry>
<title>daemon: properly skip sd_is_socket_sockaddr calls if not available</title>
<updated>2017-03-19T17:17:13+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2017-03-19T16:38:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/commit/?id=5498ad7513e1a703e7881b28c78a47ffd8810838'/>
<id>5498ad7513e1a703e7881b28c78a47ffd8810838</id>
<content type='text'>
As with other functions, the wrapper is always present, but returns
OSError: [Errno 38] Function not implemented.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As with other functions, the wrapper is always present, but returns
OSError: [Errno 38] Function not implemented.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix styling to match PEP8 in most places (#45)</title>
<updated>2017-03-14T21:36:46+00:00</updated>
<author>
<name>Wesley Bowman</name>
<email>wesley.bowman23@gmail.com</email>
</author>
<published>2017-03-14T21:36:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/commit/?id=73807b49c495105b33b83deec1402080a78b09b0'/>
<id>73807b49c495105b33b83deec1402080a78b09b0</id>
<content type='text'>
Backwards compatibility for mapPriority is retained.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Backwards compatibility for mapPriority is retained.
</pre>
</div>
</content>
</entry>
<entry>
<title>Adjust import order, spacing, operators as recommended by pylint</title>
<updated>2017-03-12T16:27:49+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2016-12-17T12:39:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/commit/?id=14b05bfff57feed1f20e6b562bed188bc08252dc'/>
<id>14b05bfff57feed1f20e6b562bed188bc08252dc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: move login tests from doctest to separate file</title>
<updated>2017-03-12T16:26:51+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2016-12-17T02:05:38+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/commit/?id=5aab3fc3b41ca06e66463f66ed9cc936a03a18fd'/>
<id>5aab3fc3b41ca06e66463f66ed9cc936a03a18fd</id>
<content type='text'>
This way we can skip ENOENT (which happens in containers).
While at it, let's extend the tests a bit, so that we at least
call all functions and check the type of the return value.

Also, drop '.nspawn' from the machine name, nspawn doesn't
use that suffix any more.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This way we can skip ENOENT (which happens in containers).
While at it, let's extend the tests a bit, so that we at least
call all functions and check the type of the return value.

Also, drop '.nspawn' from the machine name, nspawn doesn't
use that suffix any more.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #31 from keszybz/is_socket_sockaddr</title>
<updated>2017-03-11T19:26:27+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2017-03-11T19:26:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/commit/?id=753a4ca5ffbea9e7b937dbe5c567353f9ca21f85'/>
<id>753a4ca5ffbea9e7b937dbe5c567353f9ca21f85</id>
<content type='text'>
daemon: add basic support for sd_is_socket_sockaddr</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
daemon: add basic support for sd_is_socket_sockaddr</pre>
</div>
</content>
</entry>
<entry>
<title>replace dict.iteritems() with dict.items() to support py3 (#39)</title>
<updated>2017-03-11T18:57:44+00:00</updated>
<author>
<name>Jeongsoo, Park</name>
<email>toracle@gmail.com</email>
</author>
<published>2017-03-11T18:57:44+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/commit/?id=dce0a855c3281e7051b1cbe0f73386d1c90ef320'/>
<id>dce0a855c3281e7051b1cbe0f73386d1c90ef320</id>
<content type='text'>
py3 doesn't have dict.iteritems() anymore.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
py3 doesn't have dict.iteritems() anymore.</pre>
</div>
</content>
</entry>
<entry>
<title>test_daemon: xfail test_notify_with_socket if bind() fails (#42)</title>
<updated>2017-03-11T18:51:16+00:00</updated>
<author>
<name>Mike Gilbert</name>
<email>floppymaster@gmail.com</email>
</author>
<published>2017-03-11T18:51:16+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/commit/?id=35a27a437229a3723c8cd604819d7d90e8105010'/>
<id>35a27a437229a3723c8cd604819d7d90e8105010</id>
<content type='text'>
This bind() call may fail if TMPDIR is too long.

Bug: https://bugs.gentoo.org/610368</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This bind() call may fail if TMPDIR is too long.

Bug: https://bugs.gentoo.org/610368</pre>
</div>
</content>
</entry>
</feed>
