Skip to content

Commit

Permalink
Unique SOSIZE prefix to make it easier to extract the sosizes from th…
Browse files Browse the repository at this point in the history
…e GitHub logs.
  • Loading branch information
Ralf W. Grosse-Kunstleve committed Aug 11, 2021
1 parent 9dcbd8e commit 9228524
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions tests/test_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ def test_repr():
# In Python 3.3+, repr() accesses __qualname__
assert "pybind11_type" in repr(type(UserType))
assert "UserType" in repr(UserType)
import weakref
u = UserType(0)
w = weakref.ref(u)
assert w() is not None
del u
assert w() is None


def test_instance(msg):
Expand Down
2 changes: 1 addition & 1 deletion tools/libsize.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

libsize = os.path.getsize(lib)

print("------", os.path.basename(lib), "file size:", libsize, end="")
print("SOSIZE:", os.path.basename(lib), libsize, end="")

if os.path.exists(save):
with open(save) as sf:
Expand Down

0 comments on commit 9228524

Please sign in to comment.