--- tests/test_properties.py
+++ tests/test_properties.py
@@ -1054,15 +1054,15 @@
         self.assertEqual(self.get_prop(self.obj, 'some-float'), GObject.G_MAXFLOAT)
 
         obj = GIMarshallingTests.PropertiesObject(some_float=42.42)
-        self.assertAlmostEqual(self.get_prop(obj, 'some-float'), 42.42, 4)
+        self.assertAlmostEqual(self.get_prop(obj, 'some-float'), 42.42, places=4)
 
         obj = GIMarshallingTests.PropertiesObject(some_float=42)
-        self.assertAlmostEqual(self.get_prop(obj, 'some-float'), 42.0, 4)
+        self.assertAlmostEqual(self.get_prop(obj, 'some-float'), 42.0, places=4)
 
         self.assertRaises(TypeError, self.set_prop, self.obj, 'some-float', 'foo')
         self.assertRaises(TypeError, self.set_prop, self.obj, 'some-float', None)
 
-        self.assertAlmostEqual(self.get_prop(obj, 'some-float'), 42.0, 4)
+        self.assertAlmostEqual(self.get_prop(obj, 'some-float'), 42.0, places=4)
 
     def test_double(self):
         self.assertEqual(self.get_prop(self.obj, 'some-double'), 0)
--- tests/test_signal.py
+++ tests/test_signal.py
@@ -627,11 +627,11 @@
         # explicit float
         v = GObject.Value(GObject.TYPE_FLOAT, 1.234)
         rv = self.obj.emit("test-gvalue", v)
-        self.assertAlmostEqual(rv, 1.234, 4)
+        self.assertAlmostEqual(rv, 1.234, places=4)
 
         # implicit float
         rv = self.obj.emit("test-gvalue", 1.234)
-        self.assertAlmostEqual(rv, 1.234, 4)
+        self.assertAlmostEqual(rv, 1.234, places=4)
 
         # explicit int64
         v = GObject.Value(GObject.TYPE_INT64, GObject.G_MAXINT64)
