Remove unused patch
This commit is contained in:
parent
bee71b49a2
commit
450f05779f
2 changed files with 0 additions and 34 deletions
31
482.patch
31
482.patch
|
|
@ -1,31 +0,0 @@
|
|||
From 3d1c83677c8151fa151822473a1021d783cf6daf Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
||||
Date: Fri, 19 Apr 2019 14:32:24 +0200
|
||||
Subject: [PATCH] Support Pytest 4, config.warn is no more
|
||||
|
||||
https://docs.pytest.org/en/latest/deprecations.html#config-warn-and-node-warn
|
||||
---
|
||||
tests/benchmarks/conftest.py | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/benchmarks/conftest.py b/tests/benchmarks/conftest.py
|
||||
index d08442e9f..6fc1c9ebd 100644
|
||||
--- a/tests/benchmarks/conftest.py
|
||||
+++ b/tests/benchmarks/conftest.py
|
||||
@@ -2,6 +2,7 @@
|
||||
# Uranium is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import pytest
|
||||
+import warnings
|
||||
|
||||
warn = True
|
||||
|
||||
@@ -12,7 +13,7 @@ def pytest_ignore_collect(path, config):
|
||||
else:
|
||||
global warn
|
||||
if warn:
|
||||
- config.warn("", "Skipping benchmarks because pytest-benchmark plugin was not found.", "tests/benchmarks/conftest.py")
|
||||
+ warnings.warn(pytest.PytestWarning("Skipping benchmarks because pytest-benchmark plugin was not found."))
|
||||
warn = False
|
||||
|
||||
return True
|
||||
|
|
@ -6,9 +6,6 @@ License: LGPLv3+
|
|||
URL: https://github.com/Ultimaker/Uranium
|
||||
Source0: %{url}/archive/%{version}.tar.gz#/Uranium-%{version}.tar.gz
|
||||
|
||||
# pytest 4
|
||||
Patch1: %{url}/pull/482.patch
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: /usr/bin/doxygen
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue