summary refs log tree commit diff
path: root/pkgs/development/python-modules/zodb/fix-tests-with-persistent-4.4.patch
blob: 57946dd29863c5703c6f3e93e75ecdef48a9a92c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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"),