[gtk-doc] tests: fix deprecation warning and make text executable
- From: Stefan Sauer <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] tests: fix deprecation warning and make text executable
- Date: Thu, 13 Dec 2018 19:02:23 +0000 (UTC)
commit f13318f30370cbcd8ad2fe662572f553fac60152
Author: Stefan Sauer <ensonic users sf net>
Date: Wed Dec 12 21:06:36 2018 +0100
tests: fix deprecation warning and make text executable
tests/common.py | 8 ++++----
tests/scan.py | 0
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/common.py b/tests/common.py
index 20b1558..f8a360f 100755
--- a/tests/common.py
+++ b/tests/common.py
@@ -49,19 +49,19 @@ class TestGetModuleDocDir(unittest.TestCase):
@mock.patch('subprocess.check_output')
def test_ReturnsPath(self, subprocess_check_output):
subprocess_check_output.return_value = '/usr'
- self.assertEquals(common.GetModuleDocDir('glib-2.0'), '/usr/share/gtk-doc/html')
+ self.assertEqual(common.GetModuleDocDir('glib-2.0'), '/usr/share/gtk-doc/html')
class TestCreateValidSGMLID(unittest.TestCase):
def test_AlreadyValid(self):
- self.assertEquals(common.CreateValidSGMLID('x'), 'x')
+ self.assertEqual(common.CreateValidSGMLID('x'), 'x')
def test_SpecialCharsBecomeDash(self):
- self.assertEquals(common.CreateValidSGMLID('x_ y'), 'x--y')
+ self.assertEqual(common.CreateValidSGMLID('x_ y'), 'x--y')
def test_SpecialCharsGetRemoved(self):
- self.assertEquals(common.CreateValidSGMLID('x,;y'), 'xy')
+ self.assertEqual(common.CreateValidSGMLID('x,;y'), 'xy')
if __name__ == '__main__':
diff --git a/tests/scan.py b/tests/scan.py
old mode 100644
new mode 100755
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]