diff options
Diffstat (limited to 'tests/utils_tests/test_functional.py')
| -rw-r--r-- | tests/utils_tests/test_functional.py | 4 |
1 files changed, 1 insertions, 3 deletions
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)() |
