diff --git a/changelog/10114.trivial.rst b/changelog/10114.trivial.rst new file mode 100644 index 00000000000..f960f2b63d5 --- /dev/null +++ b/changelog/10114.trivial.rst @@ -0,0 +1 @@ +Dropped the dependency to `atomicwrites `__ library. diff --git a/setup.cfg b/setup.cfg index c4f5bd9d29f..3545a9503a8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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" diff --git a/src/_pytest/assertion/rewrite.py b/src/_pytest/assertion/rewrite.py index 9d0b431b4a7..330b6b34d30 100644 --- a/src/_pytest/assertion/rewrite.py +++ b/src/_pytest/assertion/rewrite.py @@ -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",