(tmp_path, text_file)
| 142 | |
| 143 | @pytest.fixture |
| 144 | def tar_file_with_dot_dot(tmp_path, text_file): |
| 145 | import tarfile |
| 146 | |
| 147 | directory = tmp_path / "data_dot_dot" |
| 148 | directory.mkdir() |
| 149 | path = directory / "tar_file_with_dot_dot.tar" |
| 150 | with tarfile.TarFile(path, "w") as f: |
| 151 | f.add(text_file, arcname=os.path.join("..", text_file.name)) |
| 152 | return path |
| 153 | |
| 154 | |
| 155 | @pytest.fixture |