diff tests/test-parseindex.t @ 43025:3518da504303

vfs: give all vfs an options attribute by default Multiple code path assume vfs have an options attribute, including the vfs module itself. So for consistency we explicitly add one to all vfs. This will prevent various crash in the next changesets. Differential Revision: https://phab.mercurial-scm.org/D6935
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 27 Sep 2019 05:17:30 +0200
parents 07ade2dc41db
children 61e7464477ac
line wrap: on
line diff
--- a/tests/test-parseindex.t	Fri Sep 27 06:24:42 2019 +0200
+++ b/tests/test-parseindex.t	Fri Sep 27 05:17:30 2019 +0200
@@ -53,6 +53,7 @@
   >     def wrapper(*a, **kwargs):
   >         f = o(*a, **kwargs)
   >         return singlebyteread(f)
+  >     wrapper.options = o.options
   >     return wrapper
   > 
   > cl = changelog.changelog(opener(b'.hg/store'))