Skip to content

Commit 968e1be

Browse files
committed
Fix deprecation warnings: 'assertEquals' in tests and 'sudo' in travis.
1 parent b677344 commit 968e1be

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
language: python
2-
sudo: false
32
dist: xenial
43
cache: false
54
before_install:

t/unit/test_admin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class ValidateUniqueTests(TestCase):
8484
def test_validate_unique_raises_if_schedule_not_set(self):
8585
with self.assertRaises(ValidationError) as cm:
8686
PeriodicTask(name='task0').validate_unique()
87-
self.assertEquals(
87+
self.assertEqual(
8888
cm.exception.args[0],
8989
'One of clocked, interval, crontab, or solar must be set.',
9090
)
@@ -106,9 +106,9 @@ def test_validate_unique_raises_for_multiple_schedules(self):
106106
with self.assertRaises(ValidationError) as cm:
107107
PeriodicTask(name=name, **options_dict).validate_unique()
108108
errors = cm.exception.args[0]
109-
self.assertEquals(errors.keys(), options_dict.keys())
109+
self.assertEqual(errors.keys(), options_dict.keys())
110110
for error_msg in errors.values():
111-
self.assertEquals(error_msg, [expected_error_msg])
111+
self.assertEqual(error_msg, [expected_error_msg])
112112

113113
def test_validate_unique_not_raises(self):
114114
PeriodicTask(crontab=CrontabSchedule()).validate_unique()

0 commit comments

Comments
 (0)