File: Do-not-warn-on-every-pytest-call.patch

package info (click to toggle)
labgrid 0.4.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,232 kB
  • sloc: python: 17,045; makefile: 30; sh: 12
file content (20 lines) | stat: -rw-r--r-- 934 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Bastian Germann <bage@debian.org>
Date: Fri, 8 Jan 2021 01:18:12 +0100
Subject: Do not warn on every pytest call
Forwarded: not-needed
---
 labgrid/driver/serialdriver.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/labgrid/driver/serialdriver.py b/labgrid/driver/serialdriver.py
index 126f674..79e2faf 100644
--- a/labgrid/driver/serialdriver.py
+++ b/labgrid/driver/serialdriver.py
@@ -32,7 +32,6 @@ class SerialDriver(ConsoleExpectMixin, Driver, ConsoleProtocol):
                    "You can install the labgrid fork via:\n"
                    "pip uninstall pyserial\n"
                    "pip install https://github.com/labgrid-project/pyserial/archive/v3.4.0.1.zip#egg=pyserial\n")  # pylint: disable=line-too-long
-        warnings.warn(message)
 
     txdelay = attr.ib(default=0.0, validator=attr.validators.instance_of(float))
     timeout = attr.ib(default=3.0, validator=attr.validators.instance_of(float))