jenkins-core-weekly: update to 2.491
[oi-userland.git] / components / python / pytest-travis-fold / patches / 01-drop-py-deps.patch
blob99347cc5c0b4bf816a966cf03e65eabc2125ab09
1 From 76dbf22b5b72198720ae24a1f25d2f2de1e2437d Mon Sep 17 00:00:00 2001
2 From: Mohammed El-Afifi <Mohammed_ElAfifi@yahoo.com>
3 Date: Tue, 13 Dec 2022 19:29:02 +0200
4 Subject: [PATCH] Drop the dependency on `py` (#12)
6 ---
7 pytest_travis_fold.py | 3 +--
8 1 file changed, 1 insertion(+), 2 deletions(-)
10 diff --git a/pytest_travis_fold.py b/pytest_travis_fold.py
11 index 609ff76..a5b520b 100644
12 --- a/pytest_travis_fold.py
13 +++ b/pytest_travis_fold.py
14 @@ -13,7 +13,6 @@
15 from functools import partial, update_wrapper
17 import pytest
18 -from py.builtin import _basestring
21 __author__ = "Eldar Abusalimov"
22 @@ -82,7 +81,7 @@ def __init__(self, fold_enabled='auto'):
23 self.setup_fold_enabled(fold_enabled)
25 def setup_fold_enabled(self, value='auto'):
26 - if isinstance(value, _basestring):
27 + if isinstance(value, str):
28 value = {
29 'never': False,
30 'always': True,