chiark / gitweb /
documentation/python: clean up redundant imports.
authorVladimír Vondruš <mosra@centrum.cz>
Sat, 13 Jul 2019 20:08:13 +0000 (22:08 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Sun, 14 Jul 2019 17:11:08 +0000 (19:11 +0200)
documentation/test_python/test_pybind.py

index 68d1b5639d15fc482f51474bbe6b22ea93e3e175..192711663fdb9f407f4822e6a0386f7b9292758d 100644 (file)
@@ -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'))