[8.0.x] Replace reorder-python-imports by isort due to black incompatibility (#11898)
Backport of #11896
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
"""Generate an executable with pytest runner embedded using PyInstaller."""
|
||||
|
||||
if __name__ == "__main__":
|
||||
import pytest
|
||||
import subprocess
|
||||
|
||||
import pytest
|
||||
|
||||
hidden = []
|
||||
for x in pytest.freeze_includes():
|
||||
hidden.extend(["--hidden-import", x])
|
||||
|
||||
@@ -5,6 +5,7 @@ pytest main().
|
||||
|
||||
if __name__ == "__main__":
|
||||
import sys
|
||||
|
||||
import pytest
|
||||
|
||||
sys.exit(pytest.main())
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
Called by tox.ini: uses the generated executable to run the tests in ./tests/
|
||||
directory.
|
||||
"""
|
||||
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
import sys
|
||||
|
||||
Reference in New Issue
Block a user