From a57d5d9bbc27a7c3f18e14f68cfc74477b50eda0 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Fri, 3 May 2019 13:03:14 +0300 Subject: Made bytes and str return types no longer mutually exclusive in lazy(). They are no longer special cased. --- tests/utils_tests/test_functional.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/utils_tests/test_functional.py') diff --git a/tests/utils_tests/test_functional.py b/tests/utils_tests/test_functional.py index cc4409d893..9a5cbfe068 100644 --- a/tests/utils_tests/test_functional.py +++ b/tests/utils_tests/test_functional.py @@ -234,9 +234,7 @@ class FunctionalTests(SimpleTestCase): def test_lazy_bytes_and_str_result_classes(self): lazy_obj = lazy(lambda: "test", str, bytes) - msg = "Cannot call lazy() with both bytes and text return types." - with self.assertRaisesMessage(ValueError, msg): - lazy_obj() + self.assertEqual(str(lazy_obj()), "test") def test_lazy_str_cast_mixed_result_types(self): lazy_value = lazy(lambda: [1], str, list)() -- cgit v1.3