01-fix-tests.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --- contrib/python/pyrsistent/py3/tests/checked_map_test.py (index)
  2. +++ contrib/python/pyrsistent/py3/tests/checked_map_test.py (working tree)
  3. @@ -127,8 +127,8 @@ class FloatVector(CheckedPVector):
  4. class VectorToSetMap(CheckedPMap):
  5. - __key_type__ = 'checked_map_test.FloatVector'
  6. - __value_type__ = 'checked_map_test.FloatSet'
  7. + __key_type__ = '__tests__.checked_map_test.FloatVector'
  8. + __value_type__ = '__tests__.checked_map_test.FloatSet'
  9. def test_type_check_with_string_specification():
  10. --- contrib/python/pyrsistent/py3/tests/checked_vector_test.py (index)
  11. +++ contrib/python/pyrsistent/py3/tests/checked_vector_test.py (working tree)
  12. @@ -184,7 +184,7 @@ def test_multiple_optional_types():
  13. class NaturalsVectorStr(CheckedPVector):
  14. - __type__ = 'checked_vector_test.Naturals'
  15. + __type__ = '__tests__.checked_vector_test.Naturals'
  16. def test_check_with_string_specification():
  17. --- contrib/python/pyrsistent/py3/tests/class_test.py (index)
  18. +++ contrib/python/pyrsistent/py3/tests/class_test.py (working tree)
  19. @@ -271,8 +271,8 @@ class Numbers(CheckedPVector):
  20. class LinkedList(PClass):
  21. - value = field(type='class_test.Numbers')
  22. - next = field(type=optional('class_test.LinkedList'))
  23. + value = field(type='__tests__.class_test.Numbers')
  24. + next = field(type=optional('__tests__.class_test.LinkedList'))
  25. def test_string_as_type_specifier():