PyCQA / isort

A Python utility / library to sort imports.
https://pycqa.github.io/isort/
MIT License
6.49k stars 579 forks source link

5.12.0: pytest is failing on 9 units #2129

Open wuch-g2v opened 1 year ago

wuch-g2v commented 1 year ago

I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.

Here is list of installed modules in build env

```console Package Version ----------------------------- ----------------- alabaster 0.7.13 asttokens 2.2.1 attrs 23.1.0 Babel 2.12.1 backcall 0.2.0 black 23.3.0 build 0.10.0 charset-normalizer 3.1.0 click 8.1.3 colorama 0.4.6 comm 0.1.3 decorator 5.1.1 distro 1.8.0 docutils 0.19 exceptiongroup 1.0.0 executing 1.2.0 gpg 1.19.0 hypothesis 6.72.4 hypothesmith 0.2.3 idna 3.4 imagesize 1.4.1 importlib-metadata 6.6.0 iniconfig 2.0.0 installer 0.7.0 ipykernel 6.22.0 ipython 8.12.0 ipython-genutils 0.2.0 jedi 0.18.2 Jinja2 3.1.2 lark 1.1.5 libcomps 0.1.19 libcst 0.4.9 MarkupSafe 2.1.2 matplotlib-inline 0.1.6 mccabe 0.7.0 mypy-extensions 1.0.0 nest-asyncio 1.5.6 packaging 23.1 parso 0.8.3 pathspec 0.11.1 pexpect 4.8.0 pickleshare 0.7.5 platformdirs 3.5.0 pluggy 1.0.0 poetry-core 1.5.2 prompt-toolkit 3.0.38 ptyprocess 0.7.0 pure-eval 0.2.2 py-cpuinfo 9.0.0 pycodestyle 2.9.1 pydocstyle 6.1.1 pyflakes 2.5.0 Pygments 2.15.1 pylama 8.4.1 pyproject_hooks 1.0.0 pytest 7.3.1 pytest-benchmark 4.0.0 pytest-mock 3.10.0 python-dateutil 2.8.2 pytz 2023.2 PyYAML 6.0 requests 2.28.2 setuptools 67.7.2 six 1.16.0 snowballstemmer 2.2.0 sortedcontainers 2.4.0 Sphinx 6.2.1 sphinxcontrib-applehelp 1.0.4 sphinxcontrib-devhelp 1.0.2.dev20230415 sphinxcontrib-htmlhelp 2.0.0 sphinxcontrib-jsmath 1.0.1.dev20230415 sphinxcontrib-qthelp 1.0.3.dev20230415 sphinxcontrib-serializinghtml 1.1.5 stack-data 0.6.2 toml 0.10.2 tomli 2.0.1 traitlets 5.9.0 typing_extensions 4.5.0 typing-inspect 0.7.1 urllib3 1.26.15 wcwidth 0.2.6 wheel 0.40.0 zipp 3.15.0 ```
wuch-g2v commented 1 year ago

I've removed from below output huge part which contains diff generated by latest black. Here is pytest output:

```console + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages + /usr/bin/pytest -ra -m 'not network' ============================= test session starts ============================== platform linux -- Python 3.8.16, pytest-7.3.1, pluggy-1.0.0 benchmark: 4.0.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000) rootdir: /home/tkloczko/rpmbuild/BUILD/isort-5.12.0 plugins: hypothesis-6.72.4, benchmark-4.0.0, mock-3.10.0, pylama-8.4.1 collected 552 items tests/benchmark/test_api.py .. [ 0%] tests/integration/test_hypothesmith.py . [ 0%] tests/integration/test_projects_using_isort.py ......F......F.... [ 3%] tests/integration/test_setting_combinations.py FF [ 4%] tests/unit/test_action_comments.py . [ 4%] tests/unit/test_api.py ............ [ 6%] tests/unit/test_comments.py ... [ 7%] tests/unit/test_deprecated_finders.py ......................FFF. [ 11%] tests/unit/test_exceptions.py ...................................... [ 18%] tests/unit/test_files.py . [ 18%] tests/unit/test_format.py ......... [ 20%] tests/unit/test_hooks.py .. [ 20%] tests/unit/test_identify.py ...... [ 21%] tests/unit/test_importable.py . [ 22%] tests/unit/test_io.py ... [ 22%] tests/unit/test_isort.py ............................................... [ 31%] ........................................................................ [ 44%] ..................s..................................................... [ 57%] ....................... [ 61%] tests/unit/test_literal.py ..... [ 62%] tests/unit/test_main.py .................... [ 65%] tests/unit/test_output.py . [ 66%] tests/unit/test_parse.py ..... [ 67%] tests/unit/test_place.py .... [ 67%] tests/unit/test_pylama_isort.py ... [ 68%] tests/unit/test_regressions.py ......................................... [ 75%] ............................... [ 81%] tests/unit/test_settings.py ......................... [ 85%] tests/unit/test_setuptools_command.py . [ 86%] tests/unit/test_ticketed_features.py ......F.................F. [ 90%] tests/unit/test_utils.py . [ 90%] tests/unit/test_wrap.py . [ 91%] tests/unit/test_wrap_modes.py ...................... [ 95%] tests/unit/profiles/test_attrs.py ... [ 95%] tests/unit/profiles/test_black.py .... [ 96%] tests/unit/profiles/test_django.py ... [ 96%] tests/unit/profiles/test_google.py .... [ 97%] tests/unit/profiles/test_hug.py ... [ 98%] tests/unit/profiles/test_open_stack.py ... [ 98%] tests/unit/profiles/test_plone.py ... [ 99%] tests/unit/profiles/test_pycharm.py . [ 99%] tests/unit/profiles/test_wemake.py ... [100%] =================================== FAILURES =================================== _______________________________ test_websockets ________________________________ tmpdir = local('/tmp/pytest-of-tkloczko/pytest-4/test_websockets0') def test_websockets(tmpdir): git_clone("https://github.com/aaugustin/websockets.git", tmpdir) > run_isort((str(tmpdir), "--skip", "example", "--skip", "docs", "--skip", "compliance")) tests/integration/test_projects_using_isort.py:76: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_projects_using_isort.py:25: in run_isort main(["--check-only", "--diff", *arguments]) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ argv = ['--check-only', '--diff', '/tmp/pytest-of-tkloczko/pytest-4/test_websockets0', '--skip', 'example', '--skip', ...] stdin = None def main(argv: Optional[Sequence[str]] = None, stdin: Optional[TextIOWrapper] = None) -> None: arguments = parse_args(argv) if arguments.get("show_version"): print(ASCII_ART) return show_config: bool = arguments.pop("show_config", False) show_files: bool = arguments.pop("show_files", False) if show_config and show_files: sys.exit("Error: either specify show-config or show-files not both.") if "settings_path" in arguments: if os.path.isfile(arguments["settings_path"]): arguments["settings_file"] = os.path.abspath(arguments["settings_path"]) arguments["settings_path"] = os.path.dirname(arguments["settings_file"]) else: arguments["settings_path"] = os.path.abspath(arguments["settings_path"]) if "virtual_env" in arguments: venv = arguments["virtual_env"] arguments["virtual_env"] = os.path.abspath(venv) if not os.path.isdir(arguments["virtual_env"]): warn(f"virtual_env dir does not exist: {arguments['virtual_env']}") file_names = arguments.pop("files", []) if not file_names and not show_config: print(QUICK_GUIDE) if arguments: sys.exit("Error: arguments passed in without any paths or content.") return if "settings_path" not in arguments: arguments["settings_path"] = ( os.path.abspath(file_names[0] if file_names else ".") or os.getcwd() ) if not os.path.isdir(arguments["settings_path"]): arguments["settings_path"] = os.path.dirname(arguments["settings_path"]) config_dict = arguments.copy() ask_to_apply = config_dict.pop("ask_to_apply", False) jobs = config_dict.pop("jobs", None) check = config_dict.pop("check", False) show_diff = config_dict.pop("show_diff", False) write_to_stdout = config_dict.pop("write_to_stdout", False) deprecated_flags = config_dict.pop("deprecated_flags", False) remapped_deprecated_args = config_dict.pop("remapped_deprecated_args", False) stream_filename = config_dict.pop("filename", None) ext_format = config_dict.pop("ext_format", None) allow_root = config_dict.pop("allow_root", None) resolve_all_configs = config_dict.pop("resolve_all_configs", False) wrong_sorted_files = False all_attempt_broken = False no_valid_encodings = False config_trie: Optional[Trie] = None if resolve_all_configs: config_trie = find_all_configs(config_dict.pop("config_root", ".")) if "src_paths" in config_dict: config_dict["src_paths"] = { Path(src_path).resolve() for src_path in config_dict.get("src_paths", ()) } config = Config(**config_dict) if show_config: print(json.dumps(config.__dict__, indent=4, separators=(",", ": "), default=_preconvert)) return if file_names == ["-"]: file_path = Path(stream_filename) if stream_filename else None if show_files: sys.exit("Error: can't show files for streaming input.") input_stream = sys.stdin if stdin is None else stdin if check: incorrectly_sorted = not api.check_stream( input_stream=input_stream, config=config, show_diff=show_diff, file_path=file_path, extension=ext_format, ) wrong_sorted_files = incorrectly_sorted else: try: api.sort_stream( input_stream=input_stream, output_stream=sys.stdout, config=config, show_diff=show_diff, file_path=file_path, extension=ext_format, raise_on_skip=False, ) except FileSkipped: sys.stdout.write(input_stream.read()) elif "/" in file_names and not allow_root: printer = create_terminal_printer( color=config.color_output, error=config.format_error, success=config.format_success ) printer.error("it is dangerous to operate recursively on '/'") printer.error("use --allow-root to override this failsafe") sys.exit(1) else: if stream_filename: printer = create_terminal_printer( color=config.color_output, error=config.format_error, success=config.format_success ) printer.error("Filename override is intended only for stream (-) sorting.") sys.exit(1) skipped: List[str] = [] broken: List[str] = [] if config.filter_files: filtered_files = [] for file_name in file_names: if config.is_skipped(Path(file_name)): skipped.append(file_name) else: filtered_files.append(file_name) file_names = filtered_files file_names = files.find(file_names, config, skipped, broken) if show_files: for file_name in file_names: print(file_name) return num_skipped = 0 num_broken = 0 num_invalid_encoding = 0 if config.verbose: print(ASCII_ART) if jobs: import multiprocessing executor = multiprocessing.Pool(jobs if jobs > 0 else multiprocessing.cpu_count()) attempt_iterator = executor.imap( functools.partial( sort_imports, config=config, check=check, ask_to_apply=ask_to_apply, write_to_stdout=write_to_stdout, extension=ext_format, config_trie=config_trie, ), file_names, ) else: # https://github.com/python/typeshed/pull/2814 attempt_iterator = ( sort_imports( # type: ignore file_name, config=config, check=check, ask_to_apply=ask_to_apply, show_diff=show_diff, write_to_stdout=write_to_stdout, extension=ext_format, config_trie=config_trie, ) for file_name in file_names ) # If any files passed in are missing considered as error, should be removed is_no_attempt = True any_encoding_valid = False for sort_attempt in attempt_iterator: if not sort_attempt: continue # pragma: no cover - shouldn't happen, satisfies type constraint incorrectly_sorted = sort_attempt.incorrectly_sorted if arguments.get("check", False) and incorrectly_sorted: wrong_sorted_files = True if sort_attempt.skipped: num_skipped += ( 1 # pragma: no cover - shouldn't happen, due to skip in iter_source_code ) if not sort_attempt.supported_encoding: num_invalid_encoding += 1 else: any_encoding_valid = True is_no_attempt = False num_skipped += len(skipped) if num_skipped and not config.quiet: if config.verbose: for was_skipped in skipped: print( f"{was_skipped} was skipped as it's listed in 'skip' setting, " "matches a glob in 'skip_glob' setting, or is in a .gitignore file with " "--skip-gitignore enabled." ) print(f"Skipped {num_skipped} files") num_broken += len(broken) if num_broken and not config.quiet: if config.verbose: for was_broken in broken: warn(f"{was_broken} was broken path, make sure it exists correctly") print(f"Broken {num_broken} paths") if num_broken > 0 and is_no_attempt: all_attempt_broken = True if num_invalid_encoding > 0 and not any_encoding_valid: no_valid_encodings = True if not config.quiet and (remapped_deprecated_args or deprecated_flags): if remapped_deprecated_args: warn( "W0502: The following deprecated single dash CLI flags were used and translated: " f"{', '.join(remapped_deprecated_args)}!" ) if deprecated_flags: warn( "W0501: The following deprecated CLI flags were used and ignored: " f"{', '.join(deprecated_flags)}!" ) warn( "W0500: Please see the 5.0.0 Upgrade guide: " "https://pycqa.github.io/isort/docs/upgrade_guides/5.0.0.html" ) if wrong_sorted_files: > sys.exit(1) E SystemExit: 1 ../../BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:1284: SystemExit ----------------------------- Captured stdout call ----------------------------- [..] ___________________________ test_isort_is_idempotent ___________________________ @hypothesis.example( > config=isort.Config( py_version="all", force_to_top=frozenset(), skip=frozenset( { ".svn", ".venv", "build", "dist", ".bzr", ".tox", ".hg", ".mypy_cache", ".nox", "_build", "buck-out", "node_modules", ".git", ".eggs", ".pants.d", "venv", ".direnv", } ), skip_glob=frozenset(), skip_gitignore=True, line_length=79, wrap_length=0, line_ending="", sections=("FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"), no_sections=False, known_future_library=frozenset({"__future__"}), known_third_party=frozenset(), known_first_party=frozenset(), known_local_folder=frozenset(), known_standard_library=frozenset( { "pwd", "types", "nntplib", "jpeg", "pyclbr", "encodings", "ctypes", "macerrors", "filecmp", "dbm", "mimetypes", "statvfs", "msvcrt", "spwd", "codecs", "SimpleHTTPServer", "compiler", "pickletools", "tkinter", "pickle", "fm", "bsddb", "contextvars", "dummy_thread", "pipes", "heapq", "dircache", "commands", "unicodedata", "ntpath", "marshal", "fpformat", "linecache", "calendar", "pty", "MimeWriter", "inspect", "mmap", "ic", "tty", "nis", "new", "wave", "HTMLParser", "anydbm", "tracemalloc", "pdb", "sunau", "GL", "parser", "winsound", "dbhash", "zlib", "MacOS", "pprint", "crypt", "aetools", "DEVICE", "fl", "gettext", "asyncore", "copyreg", "queue", "resource", "turtledemo", "fnmatch", "hotshot", "trace", "string", "plistlib", "gzip", "functools", "aepack", "hashlib", "imp", "MiniAEFrame", "getpass", "shutil", "ttk", "multifile", "operator", "reprlib", "subprocess", "cgi", "select", "SimpleXMLRPCServer", "audioop", "macresource", "stringprep", "wsgiref", "SUNAUDIODEV", "atexit", "lzma", "asyncio", "datetime", "binhex", "autoGIL", "doctest", "thread", "enum", "tempfile", "posixfile", "mhlib", "html", "itertools", "exceptions", "sgmllib", "array", "test", "imputil", "shlex", "flp", "uu", "gdbm", "urlparse", "msilib", "termios", "modulefinder", "ossaudiodev", "timeit", "binascii", "popen2", "ConfigParser", "poplib", "zipfile", "cfmfile", "pstats", "AL", "contextlib", "code", "zipimport", "base64", "platform", "ast", "fileinput", "locale", "buildtools", "stat", "quopri", "readline", "collections", "aetypes", "concurrent", "runpy", "copy_reg", "rexec", "cmath", "optparse", "dummy_threading", "ColorPicker", "sched", "netrc", "sunaudiodev", "socketserver", "logging", "PixMapWrapper", "sysconfig", "Nav", "copy", "cmd", "csv", "chunk", "multiprocessing", "warnings", "weakref", "py_compile", "sre", "sre_parse", "curses", "threading", "re", "FrameWork", "_thread", "imgfile", "cd", "sre_constants", "xdrlib", "dataclasses", "urllib2", "StringIO", "configparser", "importlib", "UserList", "posixpath", "mailbox", "rfc822", "grp", "pydoc", "sets", "textwrap", "numbers", "W", "gl", "htmllib", "macostools", "tarfile", "ipaddress", "xmlrpc", "icopen", "traceback", "_winreg", "random", "CGIHTTPServer", "dis", "sha", "selectors", "statistics", "DocXMLRPCServer", "imghdr", "venv", "keyword", "xmlrpclib", "ftplib", "getopt", "posix", "smtpd", "profile", "sndhdr", "signal", "EasyDialogs", "dumbdbm", "fcntl", "SocketServer", "distutils", "symbol", "pathlib", "cStringIO", "imaplib", "unittest", "al", "cProfile", "robotparser", "BaseHTTPServer", "os", "pkgutil", "socket", "fractions", "shelve", "aifc", "cgitb", "xml", "decimal", "sre_compile", "ssl", "user", "Bastion", "formatter", "time", "abc", "winreg", "difflib", "FL", "bz2", "asynchat", "gc", "gensuitemodule", "symtable", "secrets", "Carbon", "mailcap", "sys", "bdb", "fpectl", "httplib", "webbrowser", "smtplib", "Cookie", "whichdb", "turtle", "tokenize", "UserString", "tabnanny", "site", "struct", "codeop", "email", "typing", "cookielib", "Queue", "rlcompleter", "errno", "macpath", "videoreader", "md5", "cPickle", "Tix", "io", "faulthandler", "Tkinter", "glob", "syslog", "telnetlib", "_dummy_thread", "hmac", "uuid", "imageop", "future_builtins", "json", "htmlentitydefs", "lib2to3", "UserDict", "mutex", "sqlite3", "findertools", "bisect", "builtins", "urllib", "http", "compileall", "argparse", "ScrolledText", "token", "dl", "applesingle", "math", "ensurepip", "mimify", "mimetools", "colorsys", "zipapp", "__builtin__", } ), extra_standard_library=frozenset(), known_other={"other": frozenset({"", "\x10\x1bm"})}, multi_line_output=0, forced_separate=(), indent=" ", comment_prefix=" #", length_sort=True, length_sort_straight=False, length_sort_sections=frozenset(), add_imports=frozenset(), remove_imports=frozenset( { "", "\U00076fe7þs\x0c\U000c8b75v\U00106541", "𥒒>\U0001960euj𒎕\x9e", "\x15\x9b", "\x02l", "\U000b71ef.\x1c", "\x7f?\U000ec91c", "\x7f,ÞoÀP8\x1b\x1e»3\x86\x94¤ÁÓ~\U00066b1a,O\U0010ab28\x90«", "Y\x06ºZ\x04Ýì\U00078ce1.\U0010c1f9[EK\x83EÖø", ";À¨|\x1b 𑐒🍸V", } ), append_only=False, reverse_relative=True, force_single_line=False, single_line_exclusions=( "Y\U000347d9g\x957K", "", "Ê\U000e8ad2\U0008fa72ùÏ\x19ç\U000eaecc𤎪.", "·o\U000d00e5\U000b36de+\x8f\U000b5953´\x08oÜ", "", ":sI¶", "", ), default_section="THIRDPARTY", import_headings={}, import_footers={}, balanced_wrapping=False, use_parentheses=True, order_by_type=True, atomic=False, lines_before_imports=-1, lines_after_imports=-1, lines_between_sections=1, lines_between_types=0, combine_as_imports=True, combine_star=False, include_trailing_comma=False, from_first=False, verbose=False, quiet=False, force_adds=False, force_alphabetical_sort_within_sections=False, force_alphabetical_sort=False, force_grid_wrap=0, force_sort_within_sections=False, lexicographical=False, ignore_whitespace=False, no_lines_before=frozenset( { "uøø", "¢", "&\x8c5Ï\U000e5f01Ø", "\U0005d415\U000a3df2h\U000f24e5\U00104d7b34¹ÒÀ", "\U000e374c8", "w", } ), no_inline_sort=False, ignore_comments=False, case_sensitive=False, sources=( { "py_version": "py3", "force_to_top": frozenset(), "skip": frozenset( { ".svn", ".venv", "build", "dist", ".bzr", ".tox", ".hg", ".mypy_cache", ".nox", "_build", "buck-out", "node_modules", ".git", ".eggs", ".pants.d", "venv", ".direnv", } ), "skip_glob": frozenset(), "skip_gitignore": False, "line_length": 79, "wrap_length": 0, "line_ending": "", "sections": ("FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"), "no_sections": False, "known_future_library": frozenset({"__future__"}), "known_third_party": frozenset(), "known_first_party": frozenset(), "known_local_folder": frozenset(), "known_standard_library": frozenset( { "pwd", "copy", "cmd", "csv", "chunk", "multiprocessing", "warnings", "types", "weakref", "nntplib", "pyclbr", "encodings", "py_compile", "sre", "ctypes", "sre_parse", "filecmp", "curses", "threading", "dbm", "re", "_thread", "sre_constants", "xdrlib", "dataclasses", "mimetypes", "configparser", "importlib", "msvcrt", "spwd", "posixpath", "mailbox", "codecs", "grp", "pickletools", "tkinter", "pickle", "contextvars", "pydoc", "textwrap", "numbers", "pipes", "heapq", "tarfile", "unicodedata", "ntpath", "ipaddress", "marshal", "xmlrpc", "traceback", "linecache", "calendar", "pty", "random", "dis", "selectors", "statistics", "imghdr", "venv", "inspect", "mmap", "keyword", "ftplib", "tty", "nis", "getopt", "posix", "smtpd", "wave", "profile", "sndhdr", "signal", "tracemalloc", "pdb", "sunau", "winsound", "parser", "zlib", "fcntl", "pprint", "distutils", "crypt", "symbol", "gettext", "pathlib", "asyncore", "copyreg", "imaplib", "unittest", "queue", "resource", "turtledemo", "fnmatch", "cProfile", "os", "pkgutil", "socket", "trace", "fractions", "string", "shelve", "plistlib", "aifc", "gzip", "functools", "cgitb", "xml", "hashlib", "decimal", "imp", "sre_compile", "ssl", "formatter", "winreg", "time", "getpass", "shutil", "abc", "difflib", "bz2", "operator", "reprlib", "subprocess", "cgi", "select", "asynchat", "audioop", "gc", "secrets", "symtable", "mailcap", "sys", "bdb", "fpectl", "stringprep", "webbrowser", "smtplib", "wsgiref", "atexit", "lzma", "asyncio", "datetime", "binhex", "doctest", "turtle", "enum", "tempfile", "tokenize", "tabnanny", "site", "html", "struct", "itertools", "codeop", "email", "array", "test", "typing", "shlex", "uu", "msilib", "termios", "rlcompleter", "modulefinder", "ossaudiodev", "timeit", "binascii", "poplib", "errno", "macpath", "zipfile", "io", "faulthandler", "pstats", "contextlib", "code", "glob", "zipimport", "base64", "syslog", "platform", "ast", "fileinput", "telnetlib", "locale", "_dummy_thread", "hmac", "stat", "uuid", "quopri", "readline", "collections", "json", "concurrent", "lib2to3", "sqlite3", "runpy", "cmath", "optparse", "bisect", "builtins", "urllib", "dummy_threading", "http", "compileall", "argparse", "token", "sched", "netrc", "math", "ensurepip", "socketserver", "colorsys", "zipapp", "logging", "sysconfig", } ), "extra_standard_library": frozenset(), "known_other": {}, "multi_line_output": 0, "forced_separate": (), "indent": " ", "comment_prefix": " #", "length_sort": False, "length_sort_straight": False, "length_sort_sections": frozenset(), "add_imports": frozenset(), "remove_imports": frozenset(), "append_only": False, "reverse_relative": False, "force_single_line": False, "single_line_exclusions": (), "default_section": "THIRDPARTY", "import_headings": {}, "import_footers": {}, "balanced_wrapping": False, "use_parentheses": False, "order_by_type": True, "atomic": False, "lines_before_imports": -1, "lines_after_imports": -1, "lines_between_sections": 1, "lines_between_types": 0, "combine_as_imports": False, "combine_star": False, "include_trailing_comma": False, "from_first": False, "verbose": False, "quiet": False, "force_adds": False, "force_alphabetical_sort_within_sections": False, "force_alphabetical_sort": False, "force_grid_wrap": 0, "force_sort_within_sections": False, "lexicographical": False, "ignore_whitespace": False, "no_lines_before": frozenset(), "no_inline_sort": False, "ignore_comments": False, "case_sensitive": False, "sources": (), "virtual_env": "", "conda_env": "", "ensure_newline_before_comments": False, "directory": "", "profile": "", "honor_noqa": False, "src_paths": frozenset(), "old_finders": False, "remove_redundant_aliases": False, "float_to_top": False, "filter_files": False, "formatter": "", "formatting_function": None, "color_output": False, "treat_comments_as_code": frozenset(), "treat_all_comments_as_code": False, "supported_extensions": frozenset({"py", "pyx", "pyi"}), "blocked_extensions": frozenset({"pex"}), "constants": frozenset(), "classes": frozenset(), "variables": frozenset(), "dedup_headings": False, "source": "defaults", }, { "classes": frozenset( { "\U000eb6c6\x9eÑ\U0008297dâhï\x8eÆ", "C", "\x8e\U000422ac±\U000b5a1f\U000c4166", "ùÚ", } ), "single_line_exclusions": ( "Y\U000347d9g\x957K", "", "Ê\U000e8ad2\U0008fa72ùÏ\x19ç\U000eaecc𤎪.", "·o\U000d00e5\U000b36de+\x8f\U000b5953´\x08oÜ", "", ":sI¶", "", ), "indent": " ", "no_lines_before": frozenset( { "uøø", "¢", "&\x8c5Ï\U000e5f01Ø", "\U0005d415\U000a3df2h\U000f24e5\U00104d7b34¹ÒÀ", "\U000e374c8", "w", } ), "quiet": False, "honor_noqa": False, "dedup_headings": True, "known_other": { "\x10\x1bm": frozenset({"\U000682a49\U000e1a63²KǶ4", "", "\x1a", "©"}), "": frozenset({"íå\x94Ì", "\U000cf258"}), }, "treat_comments_as_code": frozenset({""}), "length_sort": True, "reverse_relative": True, "combine_as_imports": True, "py_version": "all", "use_parentheses": True, "skip_gitignore": True, "remove_imports": frozenset( { "", "\U00076fe7þs\x0c\U000c8b75v\U00106541", "𥒒>\U0001960euj𒎕\x9e", "\x15\x9b", "\x02l", "\U000b71ef.\x1c", "\x7f?\U000ec91c", "\x7f,ÞoÀP8\x1b\x1e»3\x86\x94¤ÁÓ~\U00066b1a,O\U0010ab28\x90«", "Y\x06ºZ\x04Ýì\U00078ce1.\U0010c1f9[EK\x83EÖø", ";À¨|\x1b 𑐒🍸V", } ), "atomic": False, "source": "runtime", }, ), virtual_env="", conda_env="", ensure_newline_before_comments=False, directory="/home/abuild/rpmbuild/BUILD/isort-5.11.0", profile="", honor_noqa=False, old_finders=False, remove_redundant_aliases=False, float_to_top=False, filter_files=False, formatting_function=None, color_output=False, treat_comments_as_code=frozenset({""}), treat_all_comments_as_code=False, supported_extensions=frozenset({"py", "pyx", "pyi"}), blocked_extensions=frozenset({"pex"}), constants=frozenset(), classes=frozenset( {"\U000eb6c6\x9eÑ\U0008297dâhï\x8eÆ", "C", "\x8e\U000422ac±\U000b5a1f\U000c4166", "ùÚ"} ), variables=frozenset(), dedup_headings=True, ), disregard_skip=True, ) tests/integration/test_setting_combinations.py:159: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_setting_combinations.py:1016: in test_isort_is_idempotent result = isort.code(CODE_SNIPPET, config=config, disregard_skip=disregard_skip) ../../BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/api.py:92: in sort_code_string sort_stream( ../../BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/api.py:210: in sort_stream changed = core.process( ../../BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/core.py:425: in process sorted_import_section = output.sorted_imports( ../../BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/output.py:52: in sorted_imports straight_modules = sorting.sort( ../../BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/sorting.py:108: in sort return config.sorting_function(to_sort, key=key, reverse=reverse) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Config(py_version='py38', force_to_top=frozenset(), skip=frozenset({'buck-out', 'build', '.nox', 'node_modules', '.bzr... format_success='{success}: {message}', sort_order='natural_plus', sort_reexports=False, split_on_trailing_comma=False) @property def sorting_function(self) -> Callable[..., List[str]]: if self._sorting_function is not None: return self._sorting_function if self.sort_order == "natural": self._sorting_function = sorting.naturally elif self.sort_order == "native": self._sorting_function = sorted else: available_sort_orders = ["natural", "native"] import pkg_resources for sort_plugin in pkg_resources.iter_entry_points("isort.sort_function"): available_sort_orders.append(sort_plugin.name) if sort_plugin.name == self.sort_order: self._sorting_function = sort_plugin.load() break else: > raise SortingFunctionDoesNotExist(self.sort_order, available_sort_orders) E isort.exceptions.SortingFunctionDoesNotExist: Specified sort_order of natural_plus does not exist. Available sort_orders: natural,native. E Falsifying example: test_isort_is_idempotent( E config=_as_config( E {'py_version': 'auto', E 'split_on_trailing_comma': False, E 'sort_reexports': False, E 'sort_order': 'natural_plus', E 'atomic': False}, E ), E disregard_skip=False, E ) ../../BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/settings.py:725: SortingFunctionDoesNotExist ----------------------------- Captured stdout call ----------------------------- else-type place_module for http.client returned STDLIB else-type place_module for _thread returned STDLIB from-type place_module for urllib.parse returned STDLIB from-type place_module for urllib.parse returned STDLIB from-type place_module for http.cookies returned STDLIB from-type place_module for collections.abc returned STDLIB else-type place_module for pickle returned STDLIB from-type place_module for io returned STDLIB else-type place_module for configparser returned STDLIB else-type place_module for httplib returned FUTURE else-type place_module for thread returned FUTURE from-type place_module for urlparse returned FUTURE from-type place_module for urllib returned STDLIB from-type place_module for Cookie returned FUTURE from-type place_module for itertools returned STDLIB else-type place_module for cPickle returned FUTURE from-type place_module for StringIO returned FUTURE else-type place_module for ConfigParser returned FUTURE from-type place_module for collections returned STDLIB from-type place_module for urllib.parse returned STDLIB else-type place_module for http.client returned STDLIB else-type place_module for _thread returned STDLIB else-type place_module for pickle returned STDLIB from-type place_module for io returned STDLIB from-type place_module for http.cookies returned STDLIB else-type place_module for configparser returned STDLIB from-type place_module for collections.abc returned STDLIB from-type place_module for urlparse returned FUTURE else-type place_module for thread returned FUTURE from-type place_module for StringIO returned FUTURE else-type place_module for httplib returned FUTURE else-type place_module for cPickle returned FUTURE from-type place_module for Cookie returned FUTURE else-type place_module for ConfigParser returned FUTURE from-type place_module for urllib returned STDLIB from-type place_module for itertools returned STDLIB from-type place_module for collections returned STDLIB from-type place_module for urllib.parse returned STDLIB else-type place_module for http.client returned STDLIB else-type place_module for _thread returned STDLIB else-type place_module for pickle returned STDLIB from-type place_module for io returned STDLIB from-type place_module for http.cookies returned STDLIB else-type place_module for configparser returned STDLIB from-type place_module for collections.abc returned STDLIB from-type place_module for urlparse returned FUTURE else-type place_module for thread returned FUTURE from-type place_module for StringIO returned FUTURE else-type place_module for httplib returned FUTURE else-type place_module for cPickle returned FUTURE from-type place_module for Cookie returned FUTURE else-type place_module for ConfigParser returned FUTURE from-type place_module for urllib returned STDLIB from-type place_module for itertools returned STDLIB from-type place_module for collections returned STDLIB else-type place_module for http.client returned STDLIB else-type place_module for _thread returned STDLIB from-type place_module for urllib.parse returned STDLIB from-type place_module for urllib.parse returned STDLIB from-type place_module for http.cookies returned STDLIB from-type place_module for collections.abc returned STDLIB else-type place_module for pickle returned STDLIB from-type place_module for io returned STDLIB else-type place_module for configparser returned STDLIB else-type place_module for httplib returned FUTURE else-type place_module for thread returned FUTURE from-type place_module for urlparse returned FUTURE from-type place_module for urllib returned STDLIB from-type place_module for Cookie returned FUTURE from-type place_module for itertools returned STDLIB else-type place_module for cPickle returned FUTURE from-type place_module for StringIO returned FUTURE else-type place_module for ConfigParser returned FUTURE from-type place_module for collections returned STDLIB else-type place_module for http.client returned STDLIB else-type place_module for _thread returned STDLIB from-type place_module for urllib.parse returned STDLIB from-type place_module for urllib.parse returned STDLIB from-type place_module for http.cookies returned STDLIB from-type place_module for collections.abc returned STDLIB else-type place_module for pickle returned STDLIB from-type place_module for io returned STDLIB else-type place_module for configparser returned STDLIB else-type place_module for httplib returned FUTURE else-type place_module for thread returned FUTURE from-type place_module for urlparse returned FUTURE from-type place_module for urllib returned STDLIB from-type place_module for Cookie returned FUTURE from-type place_module for itertools returned STDLIB else-type place_module for cPickle returned FUTURE from-type place_module for StringIO returned FUTURE else-type place_module for ConfigParser returned FUTURE from-type place_module for collections returned STDLIB __________________ test_isort_doesnt_lose_imports_or_comments __________________ @hypothesis.example( > config=isort.Config( py_version="all", force_to_top=frozenset(), skip=frozenset( { ".svn", ".venv", "build", "dist", ".bzr", ".tox", ".hg", ".mypy_cache", ".nox", "_build", "buck-out", "node_modules", ".git", ".eggs", ".pants.d", "venv", ".direnv", } ), skip_glob=frozenset(), skip_gitignore=True, line_length=79, wrap_length=0, line_ending="", sections=("FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"), no_sections=False, known_future_library=frozenset({"__future__"}), known_third_party=frozenset(), known_first_party=frozenset(), known_local_folder=frozenset(), known_standard_library=frozenset( { "pwd", "types", "nntplib", "jpeg", "pyclbr", "encodings", "ctypes", "macerrors", "filecmp", "dbm", "mimetypes", "statvfs", "msvcrt", "spwd", "codecs", "SimpleHTTPServer", "compiler", "pickletools", "tkinter", "pickle", "fm", "bsddb", "contextvars", "dummy_thread", "pipes", "heapq", "dircache", "commands", "unicodedata", "ntpath", "marshal", "fpformat", "linecache", "calendar", "pty", "MimeWriter", "inspect", "mmap", "ic", "tty", "nis", "new", "wave", "HTMLParser", "anydbm", "tracemalloc", "pdb", "sunau", "GL", "parser", "winsound", "dbhash", "zlib", "MacOS", "pprint", "crypt", "aetools", "DEVICE", "fl", "gettext", "asyncore", "copyreg", "queue", "resource", "turtledemo", "fnmatch", "hotshot", "trace", "string", "plistlib", "gzip", "functools", "aepack", "hashlib", "imp", "MiniAEFrame", "getpass", "shutil", "ttk", "multifile", "operator", "reprlib", "subprocess", "cgi", "select", "SimpleXMLRPCServer", "audioop", "macresource", "stringprep", "wsgiref", "SUNAUDIODEV", "atexit", "lzma", "asyncio", "datetime", "binhex", "autoGIL", "doctest", "thread", "enum", "tempfile", "posixfile", "mhlib", "html", "itertools", "exceptions", "sgmllib", "array", "test", "imputil", "shlex", "flp", "uu", "gdbm", "urlparse", "msilib", "termios", "modulefinder", "ossaudiodev", "timeit", "binascii", "popen2", "ConfigParser", "poplib", "zipfile", "cfmfile", "pstats", "AL", "contextlib", "code", "zipimport", "base64", "platform", "ast", "fileinput", "locale", "buildtools", "stat", "quopri", "readline", "collections", "aetypes", "concurrent", "runpy", "copy_reg", "rexec", "cmath", "optparse", "dummy_threading", "ColorPicker", "sched", "netrc", "sunaudiodev", "socketserver", "logging", "PixMapWrapper", "sysconfig", "Nav", "copy", "cmd", "csv", "chunk", "multiprocessing", "warnings", "weakref", "py_compile", "sre", "sre_parse", "curses", "threading", "re", "FrameWork", "_thread", "imgfile", "cd", "sre_constants", "xdrlib", "dataclasses", "urllib2", "StringIO", "configparser", "importlib", "UserList", "posixpath", "mailbox", "rfc822", "grp", "pydoc", "sets", "textwrap", "numbers", "W", "gl", "htmllib", "macostools", "tarfile", "ipaddress", "xmlrpc", "icopen", "traceback", "_winreg", "random", "CGIHTTPServer", "dis", "sha", "selectors", "statistics", "DocXMLRPCServer", "imghdr", "venv", "keyword", "xmlrpclib", "ftplib", "getopt", "posix", "smtpd", "profile", "sndhdr", "signal", "EasyDialogs", "dumbdbm", "fcntl", "SocketServer", "distutils", "symbol", "pathlib", "cStringIO", "imaplib", "unittest", "al", "cProfile", "robotparser", "BaseHTTPServer", "os", "pkgutil", "socket", "fractions", "shelve", "aifc", "cgitb", "xml", "decimal", "sre_compile", "ssl", "user", "Bastion", "formatter", "time", "abc", "winreg", "difflib", "FL", "bz2", "asynchat", "gc", "gensuitemodule", "symtable", "secrets", "Carbon", "mailcap", "sys", "bdb", "fpectl", "httplib", "webbrowser", "smtplib", "Cookie", "whichdb", "turtle", "tokenize", "UserString", "tabnanny", "site", "struct", "codeop", "email", "typing", "cookielib", "Queue", "rlcompleter", "errno", "macpath", "videoreader", "md5", "cPickle", "Tix", "io", "faulthandler", "Tkinter", "glob", "syslog", "telnetlib", "_dummy_thread", "hmac", "uuid", "imageop", "future_builtins", "json", "htmlentitydefs", "lib2to3", "UserDict", "mutex", "sqlite3", "findertools", "bisect", "builtins", "urllib", "http", "compileall", "argparse", "ScrolledText", "token", "dl", "applesingle", "math", "ensurepip", "mimify", "mimetools", "colorsys", "zipapp", "__builtin__", } ), extra_standard_library=frozenset(), known_other={"other": frozenset({"", "\x10\x1bm"})}, multi_line_output=0, forced_separate=(), indent=" ", comment_prefix=" #", length_sort=True, length_sort_straight=False, length_sort_sections=frozenset(), add_imports=frozenset(), remove_imports=frozenset( { "", "\U00076fe7þs\x0c\U000c8b75v\U00106541", "𥒒>\U0001960euj𒎕\x9e", "\x15\x9b", "\x02l", "\U000b71ef.\x1c", "\x7f?\U000ec91c", "\x7f,ÞoÀP8\x1b\x1e»3\x86\x94¤ÁÓ~\U00066b1a,O\U0010ab28\x90«", "Y\x06ºZ\x04Ýì\U00078ce1.\U0010c1f9[EK\x83EÖø", ";À¨|\x1b 𑐒🍸V", } ), append_only=False, reverse_relative=True, force_single_line=False, single_line_exclusions=( "Y\U000347d9g\x957K", "", "Ê\U000e8ad2\U0008fa72ùÏ\x19ç\U000eaecc𤎪.", "·o\U000d00e5\U000b36de+\x8f\U000b5953´\x08oÜ", "", ":sI¶", "", ), default_section="THIRDPARTY", import_headings={}, import_footers={}, balanced_wrapping=False, use_parentheses=True, order_by_type=True, atomic=False, lines_before_imports=-1, lines_after_imports=-1, lines_between_sections=1, lines_between_types=0, combine_as_imports=True, combine_star=False, include_trailing_comma=False, from_first=False, verbose=False, quiet=False, force_adds=False, force_alphabetical_sort_within_sections=False, force_alphabetical_sort=False, force_grid_wrap=0, force_sort_within_sections=False, lexicographical=False, ignore_whitespace=False, no_lines_before=frozenset( { "uøø", "¢", "&\x8c5Ï\U000e5f01Ø", "\U0005d415\U000a3df2h\U000f24e5\U00104d7b34¹ÒÀ", "\U000e374c8", "w", } ), no_inline_sort=False, ignore_comments=False, case_sensitive=False, sources=( { "py_version": "py3", "force_to_top": frozenset(), "skip": frozenset( { ".svn", ".venv", "build", "dist", ".bzr", ".tox", ".hg", ".mypy_cache", ".nox", "_build", "buck-out", "node_modules", ".git", ".eggs", ".pants.d", "venv", ".direnv", } ), "skip_glob": frozenset(), "skip_gitignore": False, "line_length": 79, "wrap_length": 0, "line_ending": "", "sections": ("FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"), "no_sections": False, "known_future_library": frozenset({"__future__"}), "known_third_party": frozenset(), "known_first_party": frozenset(), "known_local_folder": frozenset(), "known_standard_library": frozenset( { "pwd", "copy", "cmd", "csv", "chunk", "multiprocessing", "warnings", "types", "weakref", "nntplib", "pyclbr", "encodings", "py_compile", "sre", "ctypes", "sre_parse", "filecmp", "curses", "threading", "dbm", "re", "_thread", "sre_constants", "xdrlib", "dataclasses", "mimetypes", "configparser", "importlib", "msvcrt", "spwd", "posixpath", "mailbox", "codecs", "grp", "pickletools", "tkinter", "pickle", "contextvars", "pydoc", "textwrap", "numbers", "pipes", "heapq", "tarfile", "unicodedata", "ntpath", "ipaddress", "marshal", "xmlrpc", "traceback", "linecache", "calendar", "pty", "random", "dis", "selectors", "statistics", "imghdr", "venv", "inspect", "mmap", "keyword", "ftplib", "tty", "nis", "getopt", "posix", "smtpd", "wave", "profile", "sndhdr", "signal", "tracemalloc", "pdb", "sunau", "winsound", "parser", "zlib", "fcntl", "pprint", "distutils", "crypt", "symbol", "gettext", "pathlib", "asyncore", "copyreg", "imaplib", "unittest", "queue", "resource", "turtledemo", "fnmatch", "cProfile", "os", "pkgutil", "socket", "trace", "fractions", "string", "shelve", "plistlib", "aifc", "gzip", "functools", "cgitb", "xml", "hashlib", "decimal", "imp", "sre_compile", "ssl", "formatter", "winreg", "time", "getpass", "shutil", "abc", "difflib", "bz2", "operator", "reprlib", "subprocess", "cgi", "select", "asynchat", "audioop", "gc", "secrets", "symtable", "mailcap", "sys", "bdb", "fpectl", "stringprep", "webbrowser", "smtplib", "wsgiref", "atexit", "lzma", "asyncio", "datetime", "binhex", "doctest", "turtle", "enum", "tempfile", "tokenize", "tabnanny", "site", "html", "struct", "itertools", "codeop", "email", "array", "test", "typing", "shlex", "uu", "msilib", "termios", "rlcompleter", "modulefinder", "ossaudiodev", "timeit", "binascii", "poplib", "errno", "macpath", "zipfile", "io", "faulthandler", "pstats", "contextlib", "code", "glob", "zipimport", "base64", "syslog", "platform", "ast", "fileinput", "telnetlib", "locale", "_dummy_thread", "hmac", "stat", "uuid", "quopri", "readline", "collections", "json", "concurrent", "lib2to3", "sqlite3", "runpy", "cmath", "optparse", "bisect", "builtins", "urllib", "dummy_threading", "http", "compileall", "argparse", "token", "sched", "netrc", "math", "ensurepip", "socketserver", "colorsys", "zipapp", "logging", "sysconfig", } ), "extra_standard_library": frozenset(), "known_other": {}, "multi_line_output": 0, "forced_separate": (), "indent": " ", "comment_prefix": " #", "length_sort": False, "length_sort_straight": False, "length_sort_sections": frozenset(), "add_imports": frozenset(), "remove_imports": frozenset(), "append_only": False, "reverse_relative": False, "force_single_line": False, "single_line_exclusions": (), "default_section": "THIRDPARTY", "import_headings": {}, "import_footers": {}, "balanced_wrapping": False, "use_parentheses": False, "order_by_type": True, "atomic": False, "lines_before_imports": -1, "lines_after_imports": -1, "lines_between_sections": 1, "lines_between_types": 0, "combine_as_imports": False, "combine_star": False, "include_trailing_comma": False, "from_first": False, "verbose": False, "quiet": False, "force_adds": False, "force_alphabetical_sort_within_sections": False, "force_alphabetical_sort": False, "force_grid_wrap": 0, "force_sort_within_sections": False, "lexicographical": False, "ignore_whitespace": False, "no_lines_before": frozenset(), "no_inline_sort": False, "ignore_comments": False, "case_sensitive": False, "sources": (), "virtual_env": "", "conda_env": "", "ensure_newline_before_comments": False, "directory": "", "profile": "", "honor_noqa": False, "src_paths": frozenset(), "old_finders": False, "remove_redundant_aliases": False, "float_to_top": False, "filter_files": False, "formatter": "", "formatting_function": None, "color_output": False, "treat_comments_as_code": frozenset(), "treat_all_comments_as_code": False, "supported_extensions": frozenset({"py", "pyx", "pyi"}), "blocked_extensions": frozenset({"pex"}), "constants": frozenset(), "classes": frozenset(), "variables": frozenset(), "dedup_headings": False, "source": "defaults", }, { "classes": frozenset( { "\U000eb6c6\x9eÑ\U0008297dâhï\x8eÆ", "C", "\x8e\U000422ac±\U000b5a1f\U000c4166", "ùÚ", } ), "single_line_exclusions": ( "Y\U000347d9g\x957K", "", "Ê\U000e8ad2\U0008fa72ùÏ\x19ç\U000eaecc𤎪.", "·o\U000d00e5\U000b36de+\x8f\U000b5953´\x08oÜ", "", ":sI¶", "", ), "indent": " ", "no_lines_before": frozenset( { "uøø", "¢", "&\x8c5Ï\U000e5f01Ø", "\U0005d415\U000a3df2h\U000f24e5\U00104d7b34¹ÒÀ", "\U000e374c8", "w", } ), "quiet": False, "honor_noqa": False, "dedup_headings": True, "known_other": { "\x10\x1bm": frozenset({"\U000682a49\U000e1a63²KǶ4", "", "\x1a", "©"}), "": frozenset({"íå\x94Ì", "\U000cf258"}), }, "treat_comments_as_code": frozenset({""}), "length_sort": True, "reverse_relative": True, "combine_as_imports": True, "py_version": "all", "use_parentheses": True, "skip_gitignore": True, "remove_imports": frozenset( { "", "\U00076fe7þs\x0c\U000c8b75v\U00106541", "𥒒>\U0001960euj𒎕\x9e", "\x15\x9b", "\x02l", "\U000b71ef.\x1c", "\x7f?\U000ec91c", "\x7f,ÞoÀP8\x1b\x1e»3\x86\x94¤ÁÓ~\U00066b1a,O\U0010ab28\x90«", "Y\x06ºZ\x04Ýì\U00078ce1.\U0010c1f9[EK\x83EÖø", ";À¨|\x1b 𑐒🍸V", } ), "atomic": False, "source": "runtime", }, ), virtual_env="", conda_env="", ensure_newline_before_comments=False, directory="/home/abuild/rpmbuild/BUILD/isort-5.11.0", profile="", honor_noqa=False, old_finders=False, remove_redundant_aliases=False, float_to_top=False, filter_files=False, formatting_function=None, color_output=False, treat_comments_as_code=frozenset({""}), treat_all_comments_as_code=False, supported_extensions=frozenset({"py", "pyx", "pyi"}), blocked_extensions=frozenset({"pex"}), constants=frozenset(), classes=frozenset( {"\U000eb6c6\x9eÑ\U0008297dâhï\x8eÆ", "C", "\x8e\U000422ac±\U000b5a1f\U000c4166", "ùÚ"} ), variables=frozenset(), dedup_headings=True, ), disregard_skip=True, ) tests/integration/test_setting_combinations.py:1024: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_setting_combinations.py:1873: in test_isort_doesnt_lose_imports_or_comments result = isort.code(CODE_SNIPPET, config=config, disregard_skip=disregard_skip) ../../BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/api.py:92: in sort_code_string sort_stream( ../../BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/api.py:210: in sort_stream changed = core.process( ../../BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/core.py:425: in process sorted_import_section = output.sorted_imports( ../../BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/output.py:52: in sorted_imports straight_modules = sorting.sort( ../../BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/sorting.py:108: in sort return config.sorting_function(to_sort, key=key, reverse=reverse) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Config(py_version='py38', force_to_top=frozenset(), skip=frozenset({'buck-out', 'build', '.nox', 'node_modules', '.bzr... format_success='{success}: {message}', sort_order='natural_plus', sort_reexports=False, split_on_trailing_comma=False) @property def sorting_function(self) -> Callable[..., List[str]]: if self._sorting_function is not None: return self._sorting_function if self.sort_order == "natural": self._sorting_function = sorting.naturally elif self.sort_order == "native": self._sorting_function = sorted else: available_sort_orders = ["natural", "native"] import pkg_resources for sort_plugin in pkg_resources.iter_entry_points("isort.sort_function"): available_sort_orders.append(sort_plugin.name) if sort_plugin.name == self.sort_order: self._sorting_function = sort_plugin.load() break else: > raise SortingFunctionDoesNotExist(self.sort_order, available_sort_orders) E isort.exceptions.SortingFunctionDoesNotExist: Specified sort_order of natural_plus does not exist. Available sort_orders: natural,native. E Falsifying example: test_isort_doesnt_lose_imports_or_comments( E config=_as_config( E {'py_version': 'auto', E 'split_on_trailing_comma': False, E 'sort_reexports': False, E 'sort_order': 'natural_plus', E 'atomic': False}, E ), E disregard_skip=False, E ) ../../BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/settings.py:725: SortingFunctionDoesNotExist _________________ TestRequirementsFinder.test_requirements_dir _________________ self = tmpdir = local('/tmp/pytest-of-tkloczko/pytest-4/test_requirements_dir0') def test_requirements_dir(self, tmpdir): tmpdir.mkdir("requirements").join("development.txt").write("x==1.00") test_finder = self.kind(settings.DEFAULT_CONFIG, str(tmpdir)) > assert test_finder.find("x") E AssertionError: assert None E + where None = >('x') E + where > = .find /home/tkloczko/rpmbuild/BUILD/isort-5.12.0/tests/unit/test_deprecated_finders.py:136: AssertionError ___________________________ test_requirements_finder ___________________________ tmpdir = local('/tmp/pytest-of-tkloczko/pytest-4/test_requirements_finder0') def test_requirements_finder(tmpdir) -> None: subdir = tmpdir.mkdir("subdir").join("lol.txt") subdir.write("flask") req_file = tmpdir.join("requirements.txt") req_file.write("Django==1.11\n-e git+https://github.com/orsinium/deal.git#egg=deal\n") for path in (str(tmpdir), str(subdir)): finder = finders.RequirementsFinder(config=Config(), path=path) files = list(finder._get_files()) > assert len(files) == 1 # file finding E AssertionError: assert 3 == 1 E + where 3 = len(['/tmp/pytest-of-tkloczko/pytest-4/test_requirements_finder0/requirements.txt', '/tmp/pytest-of-tkloczko/pytest-4/test...rements_findercurrent/requirements.txt', '/tmp/pytest-of-tkloczko/pytest-4/test_requirements_finder0/requirements.txt']) /home/tkloczko/rpmbuild/BUILD/isort-5.12.0/tests/unit/test_deprecated_finders.py:149: AssertionError _____________________________ test_pipfile_finder ______________________________ tmpdir = local('/tmp/pytest-of-tkloczko/pytest-4/test_pipfile_finder0') def test_pipfile_finder(tmpdir) -> None: pipfile = tmpdir.join("Pipfile") pipfile.write(PIPFILE) finder = finders.PipfileFinder(config=Config(), path=str(tmpdir)) > assert set(finder._get_names(str(tmpdir))) == {"Django", "deal"} # file parsing /home/tkloczko/rpmbuild/BUILD/isort-5.12.0/tests/unit/test_deprecated_finders.py:171: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = path = '/tmp/pytest-of-tkloczko/pytest-4/test_pipfile_finder0' def _get_names(self, path: str) -> Iterator[str]: with chdir(path): > project = Pipfile.load(path) E AttributeError: 'NoneType' object has no attribute 'load' /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/deprecated/finders.py:354: AttributeError ________________ test_isort_supports_shared_profiles_issue_970 _________________ def test_isort_supports_shared_profiles_issue_970(): """Test to ensure isort provides a way to use shared profiles. See: https://github.com/pycqa/isort/issues/970. """ > assert isort.code("import a", profile="example") == "import a\n" # shared profile /home/tkloczko/rpmbuild/BUILD/isort-5.12.0/tests/unit/test_ticketed_features.py:234: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/api.py:91: in sort_code_string config = _config(path=file_path, config=config, **config_kwargs) /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/api.py:649: in _config config = Config(**config_kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <[AttributeError("'Config' object has no attribute 'known_other'") raised in repr()] Config object at 0x7f13d6547f70> settings_file = '', settings_path = '', config = None config_overrides = {'profile': 'example'}, quiet = False sources = [{'add_imports': frozenset(), 'append_only': False, 'atomic': False, 'auto_identify_namespace_packages': True, ...}] config_settings = {}, project_root = '/tmp/pytest-of-tkloczko/pytest-4/config0' profile_name = 'example', profile = {} def __init__( self, settings_file: str = "", settings_path: str = "", config: Optional[_Config] = None, **config_overrides: Any, ): self._known_patterns: Optional[List[Tuple[Pattern[str], str]]] = None self._section_comments: Optional[Tuple[str, ...]] = None self._section_comments_end: Optional[Tuple[str, ...]] = None self._skips: Optional[FrozenSet[str]] = None self._skip_globs: Optional[FrozenSet[str]] = None self._sorting_function: Optional[Callable[..., List[str]]] = None if config: config_vars = vars(config).copy() config_vars.update(config_overrides) config_vars["py_version"] = config_vars["py_version"].replace("py", "") config_vars.pop("_known_patterns") config_vars.pop("_section_comments") config_vars.pop("_section_comments_end") config_vars.pop("_skips") config_vars.pop("_skip_globs") config_vars.pop("_sorting_function") super().__init__(**config_vars) return # We can't use self.quiet to conditionally show warnings before super.__init__() is called # at the end of this method. _Config is also frozen so setting self.quiet isn't possible. # Therefore we extract quiet early here in a variable and use that in warning conditions. quiet = config_overrides.get("quiet", False) sources: List[Dict[str, Any]] = [_DEFAULT_SETTINGS] config_settings: Dict[str, Any] project_root: str if settings_file: config_settings = _get_config_data( settings_file, CONFIG_SECTIONS.get(os.path.basename(settings_file), FALLBACK_CONFIG_SECTIONS), ) project_root = os.path.dirname(settings_file) if not config_settings and not quiet: warn( f"A custom settings file was specified: {settings_file} but no configuration " "was found inside. This can happen when [settings] is used as the config " "header instead of [isort]. " "See: https://pycqa.github.io/isort/docs/configuration/config_files" "/#custom_config_files for more information." ) elif settings_path: if not os.path.exists(settings_path): raise InvalidSettingsPath(settings_path) settings_path = os.path.abspath(settings_path) project_root, config_settings = _find_config(settings_path) else: config_settings = {} project_root = os.getcwd() profile_name = config_overrides.get("profile", config_settings.get("profile", "")) profile: Dict[str, Any] = {} if profile_name: if profile_name not in profiles: import pkg_resources for plugin in pkg_resources.iter_entry_points("isort.profiles"): profiles.setdefault(plugin.name, plugin.load()) if profile_name not in profiles: > raise ProfileDoesNotExist(profile_name) E isort.exceptions.ProfileDoesNotExist: Specified profile of example does not exist. Available profiles: black,django,pycharm,google,open_stack,plone,attrs,hug,wemake,appnexus. /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/settings.py:367: ProfileDoesNotExist ____________________ test_sort_configurable_sort_issue_1732 ____________________ def test_sort_configurable_sort_issue_1732() -> None: """Test support for pluggable isort sort functions.""" test_input = ( "from bob2.apples2 import aardvark as aardvark2\n" "from bob.apples import aardvark \n" "import module9\n" "import module10\n" "import module200\n" ) assert isort.code(test_input, sort_order="native") == ( "import module10\n" "import module200\n" "import module9\n" "from bob.apples import aardvark\n" "from bob2.apples2 import aardvark as aardvark2\n" ) assert ( isort.code(test_input, sort_order="natural") == isort.code(test_input) == ( "import module9\n" "import module10\n" "import module200\n" "from bob2.apples2 import aardvark as aardvark2\n" "from bob.apples import aardvark\n" ) ) > assert ( isort.code(test_input, sort_order="natural_plus") == isort.code(test_input) == ( "import module9\n" "import module10\n" "import module200\n" "from bob2.apples2 import aardvark as aardvark2\n" "from bob.apples import aardvark\n" ) ) /home/tkloczko/rpmbuild/BUILD/isort-5.12.0/tests/unit/test_ticketed_features.py:1046: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/api.py:92: in sort_code_string sort_stream( /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/api.py:210: in sort_stream changed = core.process( /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/core.py:425: in process sorted_import_section = output.sorted_imports( /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/output.py:52: in sorted_imports straight_modules = sorting.sort( /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/sorting.py:108: in sort return config.sorting_function(to_sort, key=key, reverse=reverse) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Config(py_version='py3', force_to_top=frozenset(), skip=frozenset({'buck-out', 'build', '.nox', 'node_modules', '.bzr'... format_success='{success}: {message}', sort_order='natural_plus', sort_reexports=False, split_on_trailing_comma=False) @property def sorting_function(self) -> Callable[..., List[str]]: if self._sorting_function is not None: return self._sorting_function if self.sort_order == "natural": self._sorting_function = sorting.naturally elif self.sort_order == "native": self._sorting_function = sorted else: available_sort_orders = ["natural", "native"] import pkg_resources for sort_plugin in pkg_resources.iter_entry_points("isort.sort_function"): available_sort_orders.append(sort_plugin.name) if sort_plugin.name == self.sort_order: self._sorting_function = sort_plugin.load() break else: > raise SortingFunctionDoesNotExist(self.sort_order, available_sort_orders) E isort.exceptions.SortingFunctionDoesNotExist: Specified sort_order of natural_plus does not exist. Available sort_orders: natural,native. /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/settings.py:725: SortingFunctionDoesNotExist =============================== warnings summary =============================== ../../BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/settings.py:420: 1 warning tests/integration/test_setting_combinations.py: 48 warnings /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/settings.py:420: UserWarning: `known_other` setting is defined, but OTHER is not included in `sections` config option: ('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER'). See: https://pycqa.github.io/isort/#custom-sections-and-ordering. warn( tests/integration/test_setting_combinations.py::test_isort_is_idempotent tests/integration/test_setting_combinations.py::test_isort_is_idempotent /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/settings.py:445: UserWarning: `sections` setting includes APPLICATION, but no known_application is defined. The following known_SECTION config options are defined: other. warn( tests/integration/test_setting_combinations.py::test_isort_doesnt_lose_imports_or_comments tests/unit/test_regressions.py::test_reverse_relative_combined_with_force_sort_within_sections_issue_1395 /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/settings.py:445: UserWarning: `sections` setting includes APPLICATION, but no known_application is defined. The following known_SECTION config options are defined: . warn( tests/unit/test_hooks.py::test_git_hook_uses_the_configuration_file_specified_in_settings_path /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/settings.py:445: UserWarning: `sections` setting includes testsection, but no known_testsection is defined. The following known_SECTION config options are defined: . warn( tests/unit/test_isort.py::test_atomic_mode /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/api.py:201: UserWarning: Passed in content Python AST errors found but ignored due to Cython extension warn( tests/unit/test_isort.py::test_atomic_mode /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/api.py:229: UserWarning: Passed in content Python AST errors found but ignored due to Cython extension warn( tests/unit/test_isort.py::test_custom_sections_exception_handling /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/settings.py:445: UserWarning: `sections` setting includes DJANGO, but no known_django is defined. The following known_SECTION config options are defined: . warn( tests/unit/test_isort.py::test_custom_sections_exception_handling /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/settings.py:445: UserWarning: `sections` setting includes PANDAS, but no known_pandas is defined. The following known_SECTION config options are defined: . warn( tests/unit/test_isort.py::test_failing_file_check_916 /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/settings.py:445: UserWarning: `sections` setting includes NORDIGEN, but no known_nordigen is defined. The following known_SECTION config options are defined: . warn( tests/unit/test_isort.py::test_python_future_category /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/settings.py:445: UserWarning: `sections` setting includes FUTURE_LIBRARY, but no known_future_library is defined. The following known_SECTION config options are defined: future_thirdparty. warn( tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file due to [Errno 21] Is a directory: '/tmp/pytest-of-tkloczko/pytest-4/config0' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 0 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/0' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file ³\ due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/³\\' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file zU¸Jé�÷񮧭3çÍ@¢𩲃񻸍􈤊B due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/zU¸Jé\x90÷\x06\U0006e9ed3çÍ@¢𩲃\U0007be0d\U0010890aB' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 𚾜ÿ 򧕥 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U0001af9cÿ\n\U000a7565\x1a' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 7򍃊 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/7\U0008d0ca' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file ࠁÇ1򐑅³}Y due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/ࠁÇ1\U00090445³}Y' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file z� due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/z\x8b' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file : due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/:' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 2â°B due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/2â°B' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 𦊥[ due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/𦊥[' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file �®fd 󕰰 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\x9e®f\x15d\r\U000d5c30\x1e' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 񉂀¹#󁜷J× due to embedded null byte warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 𵥰 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U00035970\x13' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file �â񙞷􉚀񐣞󢽙Ï� due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\x96â\U000597b7\U00109680\U000508de\U000e2f59Ï9\x7f\x8b' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 񮞪`񨌀�k¼ due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U0006e7aa`\U00068300\x84k¼' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file �ß�Zd due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\x9eß\x8eZd' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 򍛙 Ü臫󕼊 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U0008d6d9\xa0Ü臫\U000d5f0a' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file ²ÖÍ�÷¡ (���Ï$񗮄Ôú󮻽«ýÅ due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/²ÖÍ\x89÷¡\n\x12\x07(\x9f\x99\x9fÏ$\U00057b84Ôú\U000eeefd«ýÅ' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\x02' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file ÊF  due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/ÊF\xa0' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file FF  due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/FF\xa0' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 󺩋ýnØ�𽽻eü due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U000faa4býnØ\x83\x04\U0003df7beü' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 򪴊û½Ü񓁏y due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U000aad0aû\x01½Ü\U0005304fy' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file ûû½Ü񓁏y due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/ûû\x01½Ü\U0005304fy' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 񮜢Þ�򄤑aìꂅ�7�󕊫q󾣈𦄎ö�H� due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U0006e722Þ\x84\U00084911aìꂅ\x9c7\x91\U000d52abq\U000fe8c8𦄎ö\x9bH\x90' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file ê�à𑼌´�򮨴 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/ê\x8dà\U00011f0c´\x8b\U000aea34' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file êàà𑼌´�򮨴 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/êàà\U00011f0c´\x8b\U000aea34' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file ê�à𑼌´�򮨴 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/ê\x8bà\U00011f0c´\x8b\U000aea34' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file �S�􀁇󭈮­vÈ𜉻?�� E▒� due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\x97S\x94\U00100047\U000ed22e\x12\xadvÈ\U0001c27b?\x87\x0e\x93\x0cE\x1b\x80\x93' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 񟬛y|�õ due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U0005fb1by|\x8aõ' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file ° �𡍉 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/°\r\x97𡍉' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file �𡍉 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\r\r\x97𡍉' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 𺆞÷ due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U0003a19e÷' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 𺆞 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U0003a19e' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 𺆞𺆞0» due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U0003a19e\U0003a19e0»' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 𺆞𺆞𺆞» due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U0003a19e\U0003a19e\U0003a19e»' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 𺆞𐨁11䭚𡘉vR�]𰆫 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U0003a19e𐨁11䭚𡘉vR\x8f]\U000301ab' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 񆰢\ due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U00046c22\\' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 򨗬iÚ` due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U000a85eci\x1fÚ`' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 򍺷_󶤼㎆ due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U0008deb7_\U000f693c㎆' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 𙈈 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U00019208' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file û S�򓭐|󗡍񱻚� due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\n\x0cû\xa0S\x9c\U00093b50|\U000d784d\U00071eda\x13\x90' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\x85' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file l due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/l' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file lßÊoÜ@ due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/l\ue30bßÊoÜ@' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 􃭍Û{þ� due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U00103b4dÛ{þ\x8f' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 񞄩V³5 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U0005e129V³5' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 񞄩³³5 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U0005e129³³5' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 񽆌 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U0007d18c' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 񽆌09þÎÏ due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U0007d18c09þÎÏ' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 󦠕򲡖.NR ^ due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U000e6815\U000b2856.NR\x0c^\x13' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 󭄗ï due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U000ed117ï' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file n @f§Ç򼭡À#~ due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/n\x1e@f§Ç\x07\U000bcb61À#~' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file ã�ä due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/ã\x89ä' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 񥳶�®¨®÷û÷³y due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U00065cf6\x90®¨®÷û÷³y' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 񢆛4�®¨®÷û÷³y due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U0006219b4\x90®¨®÷û÷³y' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 𺳍¹³� due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U0003accd¹³\x9e' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file ÷æ랖Í� due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/÷æ랖Í\x94' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file y^íÞ due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/y\x04^íÞ' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 􂥢�´򮱲񢉛𮭠ÌáÎæ楾ë񺈿Z«𷍰Tßõá Iµb𾩧𹄕fi$½ due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U00102962\x84´\U000aec72\U0006225b𮭠ÌáÎæ楾ë\U0007a23fZ«\U00037370Tßõá\x1cIµb\U0003ea67\U00039115fi$½' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file  󯲘񩌜󅩼c =󥫊Ñ�ª�򩚿�*ò\Í#Òp 6▒▒▒ due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\xa0\U000efc98\U0006931c\U000c5a7cc\x85=\U000e5acaÑ\x91ª\x94\U000a96bf\x88*ò\\Í#Òp\x1c6\x1b\U0004724d' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 񹒪 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U000794aa' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 񹒪1�î󪔽ÛÃuH񄣺�È>Moo due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U000794aa1\x8aî\U000ea53dÛÃu\x17H\U000448fa\x9a\x0eÈ>Moo\x1f' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file Tª6𳔼񮫡gÙ= due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/Tª\x076\U0003353c\U0006eae1\x19\x07gÙ=' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 񹤕 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U00079915' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 𥮧 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/𥮧\x0f' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 𥮧 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/𥮧' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 𥮧𥮧1 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/𥮧𥮧1' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 𥮧𥮧𐤁 due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/𥮧𥮧𐤁' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 󕲯BäæØôT4D§ due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U000d5cafBäæØô\x17T4D§' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 𖶇󶜖_𐵒񍞏񺆻p@Iß, due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U00016d87\U000f6716_\U00010d52\U0004d78f\U0007a1bbp@\x05Iß,' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 񓸚�L?4c 1#ó[ due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U00053e1a\x16\x8bL?\x0f4c\x1d1#ó[' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file K due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/K' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file KK0Wx due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/KK0Wx' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file 򊇺&äé�r¬< due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\U0008a1fa&\x1fäé\x9fr\x0f¬<' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file �򀉇ÍÒñ due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\x97\U00080247ÍÒñ\x05' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file Í򀉇ÍÒñ due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/Í\U00080247ÍÒñ\x05' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file ÞÅKÀ¼ due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/\x18ÞÅKÀ¼' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file >􆛴 È due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/>\U001066f4\x1cÈ' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_fuzz_sort_imports /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:104: UserWarning: Unable to parse file > due to [Errno 2] No such file or directory: '/tmp/pytest-of-tkloczko/pytest-4/config0/>' warn(f"Unable to parse file {file_name} due to {error}") tests/unit/test_main.py::test_missing_default_section /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/settings.py:445: UserWarning: `sections` setting includes MADEUP, but no known_madeup is defined. The following known_SECTION config options are defined: . warn( tests/unit/test_main.py::test_main /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:1081: UserWarning: virtual_env dir does not exist: /random-root-folder-that-cant-exist-right? warn(f"virtual_env dir does not exist: {arguments['virtual_env']}") tests/unit/test_main.py::test_main /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:1259: UserWarning: not-exist was broken path, make sure it exists correctly warn(f"{was_broken} was broken path, make sure it exists correctly") tests/unit/test_main.py::test_unsupported_encodings /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/main.py:108: UserWarning: Encoding not supported for /tmp/pytest-of-tkloczko/pytest-4/test_unsupported_encodings0/file.py warn(f"Encoding not supported for {file_name}") tests/unit/test_parse.py::test_file_contents /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/parse.py:566: UserWarning: could not place module xyz of line import xyz -- Do you need to define a default section? warn( tests/unit/test_parse.py::test_file_contents /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/parse.py:566: UserWarning: could not place module one of line three) -- Do you need to define a default section? warn( tests/unit/test_parse.py::test_file_contents /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/parse.py:566: UserWarning: could not place module zebra of line not_bacon -- Do you need to define a default section? warn( tests/unit/test_parse.py::test_file_contents /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/parse.py:451: UserWarning: could not place module x of line three) -- Do you need to define a default section? warn( tests/unit/test_settings.py::TestConfig::test_known_settings /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/settings.py:408: UserWarning: Can't set both known_thirdparty and known_third_party in the same config file. Default to known_third_party if unsure. See: https://pycqa.github.io/isort/#custom-sections-and-ordering. warn( tests/unit/test_settings.py::test_find_config /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/settings.py:783: UserWarning: Failed to pull configuration information from /tmp/pytest-of-tkloczko/pytest-4/test_find_config0/.isort.cfg warn(f"Failed to pull configuration information from {potential_config_file}") tests/unit/test_settings.py::test_find_all_configs /home/tkloczko/rpmbuild/BUILDROOT/python-isort-5.12.0-3.fc35.x86_64/usr/lib/python3.8/site-packages/isort/settings.py:821: UserWarning: Failed to pull configuration information from /tmp/pytest-of-tkloczko/pytest-4/test_find_all_configs0/subdir4/pyproject.toml warn(f"Failed to pull configuration information from {potential_config_file}") tests/unit/test_ticketed_features.py::test_isort_should_warn_on_empty_custom_config_issue_1433 /usr/lib/python3.8/site-packages/_pytest/python.py:199: PytestRemovedIn8Warning: Passing None has been deprecated. See https://docs.pytest.org/en/latest/how-to/capture-warnings.html#additional-use-cases-of-warnings-in-tests for alternatives in common use cases. result = testfunction(**testargs) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ---------------------------------------------------------------------------------- benchmark: 2 tests ---------------------------------------------------------------------------------- Name (time in ms) Min Max Mean StdDev Median IQR Outliers OPS Rounds Iterations ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- test_sort_file_in_place 1.4249 (1.0) 1.6030 (1.0) 1.4614 (1.0) 0.0395 (1.0) 1.4629 (1.0) 0.0372 (2.15) 7;7 684.2759 (1.0) 100 10 test_sort_file 1.5544 (1.09) 7.2618 (4.53) 1.6626 (1.14) 0.5730 (14.51) 1.5949 (1.09) 0.0173 (1.0) 2;20 601.4733 (0.88) 100 10 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Legend: Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range) from 1st Quartile and 3rd Quartile. OPS: Operations Per Second, computed as 1 / Mean =========================== short test summary info ============================ SKIPPED [1] tests/unit/test_isort.py:3628: TODO: Duplicates currently not handled. FAILED tests/integration/test_projects_using_isort.py::test_websockets - Syst... FAILED tests/integration/test_projects_using_isort.py::test_datadog_integrations_core FAILED tests/integration/test_setting_combinations.py::test_isort_is_idempotent FAILED tests/integration/test_setting_combinations.py::test_isort_doesnt_lose_imports_or_comments FAILED tests/unit/test_deprecated_finders.py::TestRequirementsFinder::test_requirements_dir FAILED tests/unit/test_deprecated_finders.py::test_requirements_finder - Asse... FAILED tests/unit/test_deprecated_finders.py::test_pipfile_finder - Attribute... FAILED tests/unit/test_ticketed_features.py::test_isort_supports_shared_profiles_issue_970 FAILED tests/unit/test_ticketed_features.py::test_sort_configurable_sort_issue_1732 ====== 9 failed, 542 passed, 1 skipped, 153 warnings in 173.26s (0:02:53) ====== ```
wuch-g2v commented 1 year ago

Any update? 🤔