diff --git a/tests/test-upgrade-repo.t b/tests/test-upgrade-repo.t
index d6f34ceb08db1c8de7fc0be554e29d07cc9acf68_dGVzdHMvdGVzdC11cGdyYWRlLXJlcG8udA==..f1dffb37f27c21a58dd4e0993e018f2c31d1e96e_dGVzdHMvdGVzdC11cGdyYWRlLXJlcG8udA== 100644
--- a/tests/test-upgrade-repo.t
+++ b/tests/test-upgrade-repo.t
@@ -390,7 +390,7 @@
   >>> random.seed(0) # have a reproducible content
   >>> with open("f2", "w") as f:
   ...     for i in range(100000):
-  ...         f.write("%d\n" % random.randint(1000000000, 9999999999))
+  ...         f.write("%d\n" % random.randint(1000000000, 9999999999)) and None
   $ hg -q commit -A -m 'add f2'
 
 make sure we have a .d file