From 64798a49edc7e86b875784b599f3bb2c4b71bdd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Fri, 11 Jun 2021 19:12:10 +0200 Subject: [PATCH] make test not expect *nix style absolute paths starting with `/` --- tests/test_jsonreport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_jsonreport.py b/tests/test_jsonreport.py index b1fcf76..2e3ee8e 100644 --- a/tests/test_jsonreport.py +++ b/tests/test_jsonreport.py @@ -1,4 +1,5 @@ import logging +import os.path import sys import pytest @@ -52,7 +53,7 @@ def test_report_keys(num_processes, make_json): assert set(data) == keys assert isinstance(data['created'], float) assert isinstance(data['duration'], float) - assert data['root'].startswith('/') + assert os.path.isabs(data['root']) assert data['exitcode'] == 1