forked from pool/python-immutables
42b28c2519
* Python 3.8 fixes - Add one more py38 patch: * py38.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-immutables?expand=0&rev=5
24 lines
830 B
Diff
24 lines
830 B
Diff
From 2b52677fdde34b1c89bdf4411ef95bd1ed0f343d Mon Sep 17 00:00:00 2001
|
|
From: Bruno Oliveira <nicoddemus@gmail.com>
|
|
Date: Sat, 2 Nov 2019 17:56:24 -0300
|
|
Subject: [PATCH] Add Python 3.8 support (#16)
|
|
|
|
Fix #15
|
|
---
|
|
tests/test_map.py | 2 +-
|
|
4 files changed, 13 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/tests/test_map.py b/tests/test_map.py
|
|
index 8d629f84..0b464cf2 100644
|
|
--- a/tests/test_map.py
|
|
+++ b/tests/test_map.py
|
|
@@ -1294,7 +1294,7 @@ def test_map_pickle(self):
|
|
self.assertTrue(isinstance(uh, self.Map))
|
|
self.assertEqual(h, uh)
|
|
|
|
- with self.assertRaisesRegex(TypeError, "can't pickle"):
|
|
+ with self.assertRaisesRegex(TypeError, "can('t|not) pickle"):
|
|
pickle.dumps(h.mutate())
|
|
|
|
@unittest.skipIf(sys.version_info < (3, 7, 0), "__class_getitem__ is not available")
|