wrapt 2.3.0.dev1__tar.gz → 2.3.0rc2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {wrapt-2.3.0.dev1/src/wrapt.egg-info → wrapt-2.3.0rc2}/PKG-INFO +1 -1
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/src/wrapt/__init__.py +1 -1
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/src/wrapt/_wrappers.c +2 -1
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2/src/wrapt.egg-info}/PKG-INFO +1 -1
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_object_proxy.py +49 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/LICENSE +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/MANIFEST.in +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/README.md +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/RELEASE.rst +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/pyproject.toml +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/setup.cfg +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/setup.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/src/wrapt/__wrapt__.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/src/wrapt/arguments.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/src/wrapt/caching.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/src/wrapt/decorators.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/src/wrapt/importer.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/src/wrapt/patches.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/src/wrapt/proxies.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/src/wrapt/signature.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/src/wrapt/synchronization.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/src/wrapt/weakrefs.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/src/wrapt/wrappers.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/src/wrapt-stubs/__init__.pyi +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/src/wrapt.egg-info/SOURCES.txt +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/src/wrapt.egg-info/dependency_links.txt +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/src/wrapt.egg-info/not-zip-safe +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/src/wrapt.egg-info/requires.txt +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/src/wrapt.egg-info/top_level.txt +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/conftest.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/compat.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/module1.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/module2.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_adapter.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_adapter_annotations.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_adapter_kwonly.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_annotations.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_attribute_wrapper.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_auto_object_proxy.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_callable_binding_no_args.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_callable_object_proxy.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_class.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_class_mro_entries.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_copy.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_decorator_state.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_decorators.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_deferred_patching.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_descriptor_get_class_access.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_descriptors.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_enabled_bool_error.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_entry_points.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_formatargspec.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_function.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_function_wrapper.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_inheritance.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_inner_classmethod.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_inner_staticmethod.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_inplace_operators.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_instancemethod.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_lazy_object_proxy.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_lru_cache.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_memoize.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_monkey_patching.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_nested_function.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_object_proxy_hook.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_object_proxy_self_dict.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_object_proxy_type_checks.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_outer_classmethod.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_outer_staticmethod.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_pickle.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_post_import_hooks.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_pyerr_clear_propagation.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_resolve_path.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_runtime_type_hints.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_synchronized_async.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_synchronized_lock.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_synchronized_markers.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_type_module_attribute.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_update_attributes.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_weak_function_proxy.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/core/test_with_signature.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_auto_object_proxy_t1.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_auto_object_proxy_t1.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_decorator_t1.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_decorator_t1.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_cls_t1.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_cls_t1.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_cls_t2.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_cls_t2.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_cls_t3.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_cls_t3.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_cls_t4.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_cls_t4.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_cls_t5.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_cls_t5.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_cls_t6.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_cls_t6.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_cls_t7.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_cls_t7.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_cls_t8.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_cls_t8.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_fn_t1.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_fn_t1.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_fn_t2.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_fn_t2.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_fn_t3.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_fn_t3.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_fn_t4.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_fn_t4.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_fn_t5.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_fn_t5.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_fn_t6.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_fn_t6.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_fn_t7.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_function_wrapper_fn_t7.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_object_proxy_arithmetic_t1.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_object_proxy_arithmetic_t1.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_object_proxy_container_t1.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_object_proxy_container_t1.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_object_proxy_context_t1.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_object_proxy_context_t1.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_partial_callable_t1.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_partial_callable_t1.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_patch_function_wrapper_t1.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_patch_function_wrapper_t1.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_patching_primitives_t1.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_patching_primitives_t1.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_post_import_hooks_t1.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_post_import_hooks_t1.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_synchronized_lock_t1.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_synchronized_lock_t1.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_transient_function_wrapper_t1.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_transient_function_wrapper_t1.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_weak_function_proxy_t1.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_weak_function_proxy_t1.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_wrap_function_wrapper_t1.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_wrap_function_wrapper_t1.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_wrap_function_wrapper_t2.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_wrap_function_wrapper_t2.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_wrap_function_wrapper_t3.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_wrap_function_wrapper_t3.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_wrap_function_wrapper_t4.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_wrap_function_wrapper_t4.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_wrap_function_wrapper_t5.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_wrap_function_wrapper_t5.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_wrap_function_wrapper_t6.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_wrap_function_wrapper_t6.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_wrap_function_wrapper_t7.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_wrap_function_wrapper_t7.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_wrap_function_wrapper_t8.out +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tests/mypy/mypy_wrap_function_wrapper_t8.py +0 -0
- {wrapt-2.3.0.dev1 → wrapt-2.3.0rc2}/tox.ini +0 -0
|
@@ -2450,7 +2450,8 @@ static PyObject *WraptObjectProxy_bytes(WraptObjectProxyObject *self,
|
|
|
2450
2450
|
return NULL;
|
|
2451
2451
|
}
|
|
2452
2452
|
|
|
2453
|
-
return
|
|
2453
|
+
return PyObject_CallFunctionObjArgs((PyObject *)&PyBytes_Type,
|
|
2454
|
+
self->wrapped, NULL);
|
|
2454
2455
|
}
|
|
2455
2456
|
|
|
2456
2457
|
/* ------------------------------------------------------------------------- */
|
|
@@ -1932,6 +1932,55 @@ class SpecialMethods(unittest.TestCase):
|
|
|
1932
1932
|
|
|
1933
1933
|
self.assertEqual(bytes(instance), bytes(proxy))
|
|
1934
1934
|
|
|
1935
|
+
def test_int_bytes(self):
|
|
1936
|
+
# bytes(proxy) should behave like bytes() on the wrapped object even
|
|
1937
|
+
# when it has no __bytes__ (e.g. an int, where bytes(n) yields a
|
|
1938
|
+
# zero-filled buffer of length n).
|
|
1939
|
+
instance = 3
|
|
1940
|
+
|
|
1941
|
+
proxy = wrapt.ObjectProxy(instance)
|
|
1942
|
+
|
|
1943
|
+
self.assertEqual(bytes(instance), bytes(proxy))
|
|
1944
|
+
|
|
1945
|
+
def test_index_bytes(self):
|
|
1946
|
+
# An object with __index__() but no __bytes__ converts like an int,
|
|
1947
|
+
# yielding a zero-filled buffer.
|
|
1948
|
+
class Class:
|
|
1949
|
+
def __index__(self):
|
|
1950
|
+
return 2
|
|
1951
|
+
|
|
1952
|
+
instance = Class()
|
|
1953
|
+
|
|
1954
|
+
proxy = wrapt.ObjectProxy(instance)
|
|
1955
|
+
|
|
1956
|
+
self.assertEqual(bytes(instance), bytes(proxy))
|
|
1957
|
+
|
|
1958
|
+
def test_buffer_bytes(self):
|
|
1959
|
+
# An object supporting the buffer protocol but no __bytes__.
|
|
1960
|
+
instance = bytearray(b"abcd")
|
|
1961
|
+
|
|
1962
|
+
proxy = wrapt.ObjectProxy(instance)
|
|
1963
|
+
|
|
1964
|
+
self.assertEqual(bytes(instance), bytes(proxy))
|
|
1965
|
+
|
|
1966
|
+
def test_iterable_bytes(self):
|
|
1967
|
+
# An iterable of ints, converted element by element.
|
|
1968
|
+
instance = [1, 2, 3]
|
|
1969
|
+
|
|
1970
|
+
proxy = wrapt.ObjectProxy(instance)
|
|
1971
|
+
|
|
1972
|
+
self.assertEqual(bytes(instance), bytes(proxy))
|
|
1973
|
+
|
|
1974
|
+
def test_str_bytes(self):
|
|
1975
|
+
# bytes() on a str without an encoding raises TypeError, and the
|
|
1976
|
+
# proxy should match rather than fall back to some other conversion.
|
|
1977
|
+
instance = "abcd"
|
|
1978
|
+
|
|
1979
|
+
proxy = wrapt.ObjectProxy(instance)
|
|
1980
|
+
|
|
1981
|
+
with self.assertRaises(TypeError):
|
|
1982
|
+
bytes(proxy)
|
|
1983
|
+
|
|
1935
1984
|
def test_str_format(self):
|
|
1936
1985
|
instance = "abcd"
|
|
1937
1986
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|