From 6f8698213929efbeec6f130361aff57a15467ad7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 13 Jul 2019 22:08:13 +0200 Subject: [PATCH] documentation/python: clean up redundant imports. --- documentation/test_python/test_pybind.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/documentation/test_python/test_pybind.py b/documentation/test_python/test_pybind.py index 68d1b563..19271166 100644 --- a/documentation/test_python/test_pybind.py +++ b/documentation/test_python/test_pybind.py @@ -154,10 +154,8 @@ class Signatures(BaseInspectTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, 'signatures', *args, **kwargs) - sys.path.append(self.path) - import pybind_signatures - def test_positional_args(self): + sys.path.append(self.path) import pybind_signatures # Verify that the assumptions are correct -- not using py::arg() makes @@ -184,9 +182,7 @@ class Signatures(BaseInspectTestCase): pybind_signatures.MyClass.another(self=a) def test(self): - import pybind_signatures self.run_python({ - 'INPUT_MODULES': ['pybind_signatures'], 'PYBIND11_COMPATIBILITY': True }) self.assertEqual(*self.actual_expected_contents('pybind_signatures.html')) -- 2.30.2