Blame SOURCES/0001-Fix-order-of-asserts-in-unit-test-RhBug1713220.patch
|
|
0492d2 |
From 849ae4a7c7abe72baaeb22214be3e04e4e43eb81 Mon Sep 17 00:00:00 2001
|
|
|
0492d2 |
From: Jaroslav Rohel <jrohel@redhat.com>
|
|
|
0492d2 |
Date: Wed, 22 May 2019 13:21:19 +0200
|
|
|
0492d2 |
Subject: [PATCH] Fix: order of asserts() in unit test (RhBug:1713220)
|
|
|
0492d2 |
|
|
|
0492d2 |
---
|
|
|
0492d2 |
libcomps/src/python/tests/__test.py | 2 +-
|
|
|
0492d2 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
0492d2 |
|
|
|
0492d2 |
diff --git a/libcomps/src/python/tests/__test.py b/libcomps/src/python/tests/__test.py
|
|
|
0492d2 |
index 40c2e83..c9b4dd4 100644
|
|
|
0492d2 |
--- a/libcomps/src/python/tests/__test.py
|
|
|
0492d2 |
+++ b/libcomps/src/python/tests/__test.py
|
|
|
0492d2 |
@@ -891,8 +891,8 @@ class COMPSTest(unittest.TestCase):
|
|
|
0492d2 |
gid1 = libcomps.GroupId("gid1")
|
|
|
0492d2 |
gid2 = libcomps.GroupId("gid2", default=False)
|
|
|
0492d2 |
gid3 = libcomps.GroupId("gid3", default=True)
|
|
|
0492d2 |
- self.assertRaises(TypeError, gid1.__eq__, 1)
|
|
|
0492d2 |
self.assertTrue(gid1 != None)
|
|
|
0492d2 |
+ self.assertRaises(TypeError, gid1.__eq__, 1)
|
|
|
0492d2 |
self.assertTrue(gid1 == gid1)
|
|
|
0492d2 |
self.assertTrue(gid1 != "gid2")
|
|
|
0492d2 |
self.assertTrue(gid1 != gid2)
|
|
|
0492d2 |
--
|
|
|
0492d2 |
libgit2 0.28.2
|
|
|
0492d2 |
|