mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-14 09:34:46 +00:00
flake8 cleanup
This commit is contained in:
parent
d3833d2cbf
commit
db529c805c
@ -2,14 +2,12 @@
|
|||||||
# pybind11 equivalent of Boost.Python test:
|
# pybind11 equivalent of Boost.Python test:
|
||||||
# https://github.com/rwgk/rwgk_tbx/blob/6c9a6d6bc72d5c1b8609724433259c5b47178680/tst_cpp_base_py_derived.py
|
# https://github.com/rwgk/rwgk_tbx/blob/6c9a6d6bc72d5c1b8609724433259c5b47178680/tst_cpp_base_py_derived.py
|
||||||
# See also: https://github.com/pybind/pybind11/issues/1333 (this was the starting point)
|
# See also: https://github.com/pybind/pybind11/issues/1333 (this was the starting point)
|
||||||
import pytest
|
|
||||||
|
|
||||||
from pybind11_tests import cpp_base_py_derived as m
|
from pybind11_tests import cpp_base_py_derived as m
|
||||||
|
|
||||||
|
|
||||||
class drvd(m.base):
|
class drvd(m.base): # noqa: N801
|
||||||
|
def __init__(self, _num=200):
|
||||||
def __init__(self, _num = 200):
|
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self._drvd_num = _num
|
self._drvd_num = _num
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import pytest
|
|
||||||
|
|
||||||
from pybind11_tests import private_first_base as m
|
from pybind11_tests import private_first_base as m
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@ CBASE_GET_INT_RESULT = 90146438
|
|||||||
CDERIVED_GET_INT_RESULT = 31607978
|
CDERIVED_GET_INT_RESULT = 31607978
|
||||||
VDERIVED_GET_INT_RESULT = 29852452
|
VDERIVED_GET_INT_RESULT = 29852452
|
||||||
|
|
||||||
|
|
||||||
def test_concrete():
|
def test_concrete():
|
||||||
m.to_cout("")
|
m.to_cout("")
|
||||||
m.to_cout("")
|
m.to_cout("")
|
||||||
@ -22,6 +23,7 @@ def test_concrete():
|
|||||||
m.pass_shared_cderived(cb)
|
m.pass_shared_cderived(cb)
|
||||||
m.to_cout("")
|
m.to_cout("")
|
||||||
|
|
||||||
|
|
||||||
def test_virtual():
|
def test_virtual():
|
||||||
m.to_cout("")
|
m.to_cout("")
|
||||||
m.to_cout("")
|
m.to_cout("")
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import pytest
|
|
||||||
|
|
||||||
from pybind11_tests import smart_ptr_private_first_base as m
|
from pybind11_tests import smart_ptr_private_first_base as m
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import pytest
|
|
||||||
|
|
||||||
from pybind11_tests import type_caster_bare_interface_demo as m
|
from pybind11_tests import type_caster_bare_interface_demo as m
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user