diff --git a/.github/workflows/build_test.yaml b/.github/workflows/build_test.yaml index 77b5f59..038a1f8 100644 --- a/.github/workflows/build_test.yaml +++ b/.github/workflows/build_test.yaml @@ -1,4 +1,4 @@ -name: build and test +name: test on: push: diff --git a/README.md b/README.md index 2d02e2d..757b401 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # coredumpy +[![build](https://github.com/gaogaotiantian/coredumpy/actions/workflows/build_test.yaml/badge.svg)](https://github.com/gaogaotiantian/coredumpy/actions/workflows/build_test.yaml) [![coverage](https://img.shields.io/codecov/c/github/gaogaotiantian/coredumpy)](https://codecov.io/gh/gaogaotiantian/coredumpy) [![pypi](https://img.shields.io/pypi/v/coredumpy.svg)](https://pypi.org/project/coredumpy/) [![support-version](https://img.shields.io/pypi/pyversions/coredumpy)](https://img.shields.io/pypi/pyversions/coredumpy) [![sponsor](https://img.shields.io/badge/%E2%9D%A4-Sponsor%20me-%23c96198?style=flat&logo=GitHub)](https://github.com/sponsors/gaogaotiantian) + coredumpy saves your crash site so you can better debug your python program. ## Highlights diff --git a/src/coredumpy/coredumpy.py b/src/coredumpy/coredumpy.py index 8fcf8d5..d34e0b9 100644 --- a/src/coredumpy/coredumpy.py +++ b/src/coredumpy/coredumpy.py @@ -53,7 +53,7 @@ def load(cls, path): pdb_instance = pdb.Pdb() pdb_instance.reset() pdb_instance.interaction(frame, None) - PyObjectProxy.clear() + PyObjectProxy.clear() # pragma: no cover dump = Coredumpy.dump diff --git a/src/coredumpy/py_object_proxy.py b/src/coredumpy/py_object_proxy.py index 0bbb9e0..c7a15da 100644 --- a/src/coredumpy/py_object_proxy.py +++ b/src/coredumpy/py_object_proxy.py @@ -114,8 +114,6 @@ def __setattr__(self, key, value): self._coredumpy_attrs[key] = value def __getattr__(self, item): - if item.startswith("_coredumpy_"): - return self.__dict__[item] if item in self._coredumpy_attrs: return type(self)._proxies[self._coredumpy_attrs[item]] raise AttributeError(f"'{self._coredumpy_type}' object has no attribute '{item}'")