From 103104573867ab09b67dc3c06c6eba33307640ab Mon Sep 17 00:00:00 2001 From: Ivan Alekseev <32224962+qwetwe@users.noreply.github.com> Date: Wed, 29 Dec 2021 17:44:25 +0300 Subject: [PATCH] Switch from volatile to tempfile. tests/lib.py: switch from volatile back to tempfile The volatile project is unmaintained. Use tempfile module, which provides similar functionality. See also: 3664c3f145a819ddd1f5d5e39df86a4f34c4f3f2 --- bowler/tests/lib.py | 4 ++-- requirements.txt | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bowler/tests/lib.py b/bowler/tests/lib.py index 9a99889..e0cd533 100644 --- a/bowler/tests/lib.py +++ b/bowler/tests/lib.py @@ -12,7 +12,7 @@ from io import StringIO import click -import volatile +import tempfile from fissix import pygram, pytree from fissix.pgen2.driver import Driver @@ -96,7 +96,7 @@ def default_query_func(files): if query_func is None: query_func = default_query_func - with volatile.file(mode="w", suffix=".py") as f: + with tempfile.NamedTemporaryFile(mode="w", suffix=".py", delete=False) as f: # TODO: I'm almost certain this will not work on Windows, since # NamedTemporaryFile has it already open for writing. Consider # using mktemp directly? diff --git a/requirements.txt b/requirements.txt index 0339b03..b11a1f2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,3 @@ attrs click fissix moreorless>=0.2.0 -volatile