nixpkgs-suyu/pkgs/development/python-modules/zodb/fix-tests-with-persistent-4.4.patch
Uli Baum b54677969b pythonPackages.zodb: fix tests
Tests failed after `persistent` was updated to 4.4.
Apply an upstream patch to fix them.
2018-09-13 13:35:34 +02:00

26 lines
885 B
Diff

From 2d0ae7199501795617a82a32bafe19b4b5ae89c3 Mon Sep 17 00:00:00 2001
From: Jason Madden <jamadden@gmail.com>
Date: Wed, 22 Aug 2018 10:43:19 -0500
Subject: [PATCH] Fix tests with, and depend on, persistent 4.4.
Fixes #213.
---
src/ZODB/tests/util.py | 5 +++++
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/ZODB/tests/util.py b/src/ZODB/tests/util.py
index 4ffde92c1..e9bf547fa 100644
--- a/src/ZODB/tests/util.py
+++ b/src/ZODB/tests/util.py
@@ -37,6 +37,11 @@
r"\1"),
(re.compile('b(".*?")'),
r"\1"),
+ # Persistent 4.4 changes the repr of persistent subclasses,
+ # and it is slightly different with the C extension and
+ # pure-Python module
+ (re.compile('ZODB.tests.testcrossdatabasereferences.'),
+ ''),
# Python 3 adds module name to exceptions.
(re.compile("ZODB.interfaces.BlobError"),
r"BlobError"),