From f45c5d2c43dd6c043c5714a1ae2fa0cf2e876ab9 Mon Sep 17 00:00:00 2001 From: Meagan Lang Date: Fri, 6 Mar 2020 11:13:43 -0600 Subject: [PATCH] Don't cover Python 3.8 specific line for now untils coverage bug is fixed (https://github.com/nedbat/coveragepy/issues/941) --- setup.cfg | 3 ++- yggdrasil/serialize/PickleSerialize.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 33b5cb3ba..2c488007f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -34,7 +34,8 @@ omit = sort = Cover ignore_errors = True show_missing = True -exclude_lines = +exclude_lines = + pragma: Python 3.8 pragma: no cover pragma: debug pragma: in progress diff --git a/yggdrasil/serialize/PickleSerialize.py b/yggdrasil/serialize/PickleSerialize.py index 66af6e7cd..5dc1c5733 100644 --- a/yggdrasil/serialize/PickleSerialize.py +++ b/yggdrasil/serialize/PickleSerialize.py @@ -88,7 +88,7 @@ def get_testing_options(cls, **kwargs): out['contents'] = ( b'\x80\x03C\rTest message\nq\x00.' + b'\x80\x03C\x0fTest message 2\nq\x00.') - else: + else: # pragma: Python 3.8 out['contents'] = ( b'\x80\x04\x95\x11\x00\x00\x00\x00\x00\x00\x00C\r' + b'Test message\n\x94.\x80\x04\x95\x13'