diff --git a/test/integration/test_mkp.py b/test/integration/test_mkp.py
index c2e35064b86c07e546855b209326c5361d782d18..7aee28219ccc3ed7713cc5f7ba451d7f623a14f0 100644
--- a/test/integration/test_mkp.py
+++ b/test/integration/test_mkp.py
@@ -165,7 +165,7 @@ dist({
     'version': '42',
 })
 ''', 'utf-8')
-    script.chmod(0700)
+    script.chmod(0o700)
     tmpdir.join('agents', 'special', 'agent_test').write_binary(b'hello', ensure=True)
     tmpdir.join('checks', 'foo').write_binary(b'Check Me!', ensure=True)