Skip to content

Commit

Permalink
Use internal atomicwrites implementation and drop dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Jul 8, 2022
1 parent 753c9cd commit 4896772
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog/10114.trivial.rst
@@ -0,0 +1 @@
Dropped the dependency to `atomicwrites <https://github.com/untitaker/python-atomicwrites>`__ library.
1 change: 0 additions & 1 deletion setup.cfg
Expand Up @@ -46,7 +46,6 @@ install_requires =
packaging
pluggy>=0.12,<2.0
py>=1.8.2
atomicwrites>=1.0;sys_platform=="win32"
colorama;sys_platform=="win32"
importlib-metadata>=0.12;python_version<"3.8"
tomli>=1.0.0;python_version<"3.11"
Expand Down
2 changes: 1 addition & 1 deletion src/_pytest/assertion/rewrite.py
Expand Up @@ -303,7 +303,7 @@ def _write_pyc_fp(


if sys.platform == "win32":
from atomicwrites import atomic_write
from _pytest.atomic_writes import atomic_write

def _write_pyc(
state: "AssertionState",
Expand Down

0 comments on commit 4896772

Please sign in to comment.