File: hash-test.patch

package info (click to toggle)
python-pyforge 1.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 432 kB
  • ctags: 976
  • sloc: python: 3,729; makefile: 15; sh: 14
file content (22 lines) | stat: -rw-r--r-- 890 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 277c66e8d9a9429616fc9b2857cfd26b3175c5ed Mon Sep 17 00:00:00 2001
From: Rotem Yaari <vmalloc@gmail.com>
Date: Mon, 21 Nov 2016 08:35:59 +0200
Subject: [PATCH] Remove problematic hash check
Origin: https://github.com/vmalloc/pyforge/commit/277c66e8d9a9429616fc9b2857cfd26b3175c5ed
Bug: https://github.com/vmalloc/pyforge/issues/17

---
 tests/test__mocking_instances.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/tests/test__mocking_instances.py
+++ b/tests/test__mocking_instances.py
@@ -16,7 +16,7 @@
     def test__mock_hashability(self):
         self._assert_mock_not_hashable(self.obj)
         self.obj.__forge__.enable_hashing()
-        self.assertEquals(id(self.obj), hash(self.obj))
+        assert hash(self.obj)
         self.obj.__forge__.disable_hashing()
         self._assert_mock_not_hashable(self.obj)
     def _assert_mock_not_hashable(self, obj):