diff --git a/changelog/4248.trivial.txt b/changelog/4248.trivial.txt new file mode 100644 index 000000000..ecd9399a7 --- /dev/null +++ b/changelog/4248.trivial.txt @@ -0,0 +1 @@ +Remove use of unnecessary compat shim, six.binary_type diff --git a/src/_pytest/pathlib.py b/src/_pytest/pathlib.py index b3519c682..7d7516b22 100644 --- a/src/_pytest/pathlib.py +++ b/src/_pytest/pathlib.py @@ -159,7 +159,7 @@ def create_cleanup_lock(p): else: pid = os.getpid() spid = str(pid) - if not isinstance(spid, six.binary_type): + if not isinstance(spid, bytes): spid = spid.encode("ascii") os.write(fd, spid) os.close(fd)