Skip to content

Commit 858fe08

Browse files
zippy2Daniel P. Berrangé
authored and
Daniel P. Berrangé
committed
test_aio.py: Fix skip message
There are two unit tests in test_aio.py that are skipped if Python is too new (3.10 or newer). But the message printed when they are skipped mentions just 3.10 which is confusing. Change it to "3.10+". Signed-off-by: Michal Privoznik <[email protected]>
1 parent 39b7773 commit 858fe08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: tests/test_aio.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def testEventsPreInitExplicit(self, mock_event_register):
118118

119119
@mock.patch('libvirt.virEventRegisterImpl',
120120
side_effect=eventmock.virEventRegisterImplMock)
121-
@unittest.skipIf(sys.version_info >= (3,10), "test incompatible with 3.10")
121+
@unittest.skipIf(sys.version_info >= (3,10), "test incompatible with 3.10+")
122122
def testEventsPreInitImplicit(self, mock_event_register):
123123
# Register libvirt events before starting the asyncio loop.
124124
#
@@ -136,7 +136,7 @@ def testEventsPreInitImplicit(self, mock_event_register):
136136

137137
@mock.patch('libvirt.virEventRegisterImpl',
138138
side_effect=eventmock.virEventRegisterImplMock)
139-
@unittest.skipIf(sys.version_info >= (3,10), "test incompatible with 3.10")
139+
@unittest.skipIf(sys.version_info >= (3,10), "test incompatible with 3.10+")
140140
def testEventsImplicitLoopInit(self, mock_event_register):
141141
# Register libvirt events before starting the asyncio loop.
142142
#

0 commit comments

Comments
 (0)