| 1 |
Description: Stop extending datetime in test_secure_refusal_to_extract_abs_paths to prevent failing tests in arm64. |
| 2 |
Upstream has confirmed this here: https://github.com/conda/conda-package-handling/issues/74#issuecomment-739349646 |
| 3 |
Author: Nilesh Patra <[email protected]> |
| 4 |
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=976506 |
| 5 |
Forwarded: https://github.com/conda/conda-package-handling/pull/75 |
| 6 |
Last-Update: 2020-12-06 |
| 7 |
--- a/tests/test_api.py |
| 8 |
+++ b/tests/test_api.py |
| 9 |
@@ -8,7 +8,6 @@ |
| 10 |
import tarfile |
| 11 |
import time |
| 12 |
import zipfile |
| 13 |
-from datetime import datetime |
| 14 |
from tempfile import TemporaryDirectory |
| 15 |
from pathlib import Path |
| 16 |
|
| 17 |
@@ -407,10 +406,7 @@ |
| 18 |
assert stat.st_nlink == 1 |
| 19 |
|
| 20 |
|
| 21 |
[email protected]( |
| 22 |
- datetime.now() <= datetime(2020, 12, 1), |
| 23 |
- reason="Don't understand why this doesn't behave. Punt.", |
| 24 |
-) |
| 25 |
[email protected](reason="Don't understand why this doesn't behave. Punt.") |
| 26 |
def test_secure_refusal_to_extract_abs_paths(testing_workdir): |
| 27 |
with tarfile.open("pinkie.tar.bz2", "w:bz2") as tf: |
| 28 |
open("thebrain", "w").close() |