1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 07:13:02 +04:00

Merge pull request #23969 from asmorkalov:as/python2_test_fix

Fixed tests execution with Python 2.7
This commit is contained in:
Alexander Smorkalov
2023-07-11 20:53:01 +03:00
committed by GitHub
2 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ public:
}
operator bool() {
return static_cast<bool>(obj_);
return obj_ != nullptr;
}
PyObject* release()