tests/badserverext.py
changeset 33191 8065b4ab0ed7
parent 32021 08e46fcb8637
child 33192 c538fca0d511
--- a/tests/badserverext.py	Fri Jun 30 03:28:18 2017 +0200
+++ b/tests/badserverext.py	Fri Jun 30 03:27:36 2017 +0200
@@ -33,10 +33,21 @@
 
 import socket
 
+from mercurial import(
+    registrar,
+)
+
 from mercurial.hgweb import (
     server,
 )
 
+configtable = {}
+configitem = registrar.configitem(configtable)
+
+configitem('badserver', 'closeafteraccept',
+    default=False,
+)
+
 # We can't adjust __class__ on a socket instance. So we define a proxy type.
 class socketproxy(object):
     __slots__ = (