Patchwork [2,of,5] tests: clarify demandimport disabled state

login
register
mail settings
Submitter timeless
Date Sept. 21, 2016, 3:59 a.m.
Message ID <982fe7cdb28bb263a96b.1474430372@gcc2-power8.osuosl.org>
Download mbox | patch
Permalink /patch/16725/
State Accepted
Headers show

Comments

timeless - Sept. 21, 2016, 3:59 a.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1474429177 0
#      Wed Sep 21 03:39:37 2016 +0000
# Node ID 982fe7cdb28bb263a96b1bc2c9c3b8aedb025ab6
# Parent  24d85146985b7d2fef3c27b97d4be983e57ae5c7
# Available At https://bitbucket.org/timeless/mercurial-crew
#              hg pull https://bitbucket.org/timeless/mercurial-crew -r 982fe7cdb28b
tests: clarify demandimport disabled state
Pierre-Yves David - Sept. 21, 2016, 11:30 a.m.
On 09/21/2016 05:59 AM, timeless wrote:
> # HG changeset patch
> # User timeless <timeless@mozdev.org>
> # Date 1474429177 0
> #      Wed Sep 21 03:39:37 2016 +0000
> # Node ID 982fe7cdb28bb263a96b1bc2c9c3b8aedb025ab6
> # Parent  24d85146985b7d2fef3c27b97d4be983e57ae5c7
> # Available At https://bitbucket.org/timeless/mercurial-crew
> #              hg pull https://bitbucket.org/timeless/mercurial-crew -r 982fe7cdb28b
> tests: clarify demandimport disabled state

I've pushed the first two as obviously correct. Can you add some longer 
description and docstring to the other 3 so that I can get a grasp of 
what is going on.

Cheers,

Patch

diff -r 24d85146985b -r 982fe7cdb28b tests/test-demandimport.py
--- a/tests/test-demandimport.py	Wed Sep 21 02:46:59 2016 +0000
+++ b/tests/test-demandimport.py	Wed Sep 21 03:39:37 2016 +0000
@@ -65,6 +65,7 @@ 
 
 demandimport.disable()
 os.environ['HGDEMANDIMPORT'] = 'disable'
+# this enable call should not actually enable demandimport!
 demandimport.enable()
 from mercurial import node
 print("node =", f(node))