openbsd-ports/devel/py-test-expect/patches/patch-pytest_expect_expect_py
shadchin e20359c887 Import py-test-expect 1.1.0, ok danj@
DESCR:

A py.test plugin that stores test expectations by saving the set of
failing tests, allowing them to be marked as xfail when running them
in future. The tests expectations are stored such that they can be
distributed alongside the tests. However, note that test expectations
can only be reliably shared between Python 2 and Python 3 if they only
use ASCII characters in their node ids: this likely isn't a limitati
n if tests are using the normal Python format, as Python 2 only allows
ASCII characters in identifiers.
2017-06-28 18:00:36 +00:00

24 lines
654 B
Plaintext

$OpenBSD: patch-pytest_expect_expect_py,v 1.1.1.1 2017/06/28 18:00:36 shadchin Exp $
Index: pytest_expect/expect.py
--- pytest_expect/expect.py.orig
+++ pytest_expect/expect.py
@@ -15,7 +15,7 @@ import os.path
import sys
import pytest
-import umsgpack
+import msgpack
from six import PY2, PY3, text_type, binary_type
_magic_file_line = b"pytest-expect file v"
@@ -142,7 +142,7 @@ class ExpectationPlugin(object):
fp.write(line)
def _parse_legacy_file(self, fp):
- state = umsgpack.unpack(fp)
+ state = msgpack.unpack(fp)
if PY3 and b'py_version' in state:
for key in list(state.keys()):