From: Vladimír Vondruš Date: Sat, 13 Jul 2019 20:08:13 +0000 (+0200) Subject: documentation/python: clean up redundant imports. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=6f8698213929efbeec6f130361aff57a15467ad7;p=blog.git documentation/python: clean up redundant imports. --- 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'))