Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add badges and fix coverage #7

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build_test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build and test
name: test

on:
push:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/coredumpy/coredumpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions src/coredumpy/py_object_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}'")
Expand Down
Loading