Fixed tests execution with Python 2.7

This commit is contained in:
Alexander Smorkalov
2023-07-11 16:49:11 +03:00
parent 37aa823112
commit 48c52c8bbb
2 changed files with 9 additions and 4 deletions

View File

@@ -71,7 +71,7 @@ public:
}
operator bool() {
return static_cast<bool>(obj_);
return obj_ != nullptr;
}
PyObject* release()