diff --git a/tests/test_class_sh_disowning_mi.py b/tests/test_class_sh_disowning_mi.py index 61cb9c6a2..80c938f21 100644 --- a/tests/test_class_sh_disowning_mi.py +++ b/tests/test_class_sh_disowning_mi.py @@ -2,7 +2,6 @@ import pytest import env # noqa: F401 - from pybind11_tests import class_sh_disowning_mi as m diff --git a/tests/test_class_sh_module_local.py b/tests/test_class_sh_module_local.py index aa4d1f3c5..98b161d6c 100644 --- a/tests/test_class_sh_module_local.py +++ b/tests/test_class_sh_module_local.py @@ -1,9 +1,8 @@ # -*- coding: utf-8 -*- -import pytest - import class_sh_module_local_0 as m0 import class_sh_module_local_1 as m1 import class_sh_module_local_2 as m2 +import pytest def test_cross_module_get_mtxt(): diff --git a/tests/test_class_sh_trampoline_shared_from_this.py b/tests/test_class_sh_trampoline_shared_from_this.py index d71a72068..bb3c83252 100644 --- a/tests/test_class_sh_trampoline_shared_from_this.py +++ b/tests/test_class_sh_trampoline_shared_from_this.py @@ -1,10 +1,9 @@ # -*- coding: utf-8 -*- +import weakref + import pytest import env # noqa: F401 - -import weakref - import pybind11_tests.class_sh_trampoline_shared_from_this as m diff --git a/ubench/holder_comparison.py b/ubench/holder_comparison.py index 0dbdbbaf0..0fb328902 100644 --- a/ubench/holder_comparison.py +++ b/ubench/holder_comparison.py @@ -1,16 +1,14 @@ # -*- coding: utf-8 -*- """Simple comparison of holder performances, relative to unique_ptr holder.""" -from __future__ import absolute_import -from __future__ import division -from __future__ import print_function - -import pybind11_ubench_holder_comparison as m +from __future__ import absolute_import, division, print_function import collections import sys import time +import pybind11_ubench_holder_comparison as m + number_bucket_pc = None diff --git a/ubench/holder_comparison_extract_sheet_data.py b/ubench/holder_comparison_extract_sheet_data.py index 64ee27fc4..bae11b9a6 100644 --- a/ubench/holder_comparison_extract_sheet_data.py +++ b/ubench/holder_comparison_extract_sheet_data.py @@ -1,9 +1,7 @@ # -*- coding: utf-8 -*- """Extract mean ratios from holder_comparison.py output.""" -from __future__ import absolute_import -from __future__ import division -from __future__ import print_function +from __future__ import absolute_import, division, print_function import sys