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