Skip to content

Commit a7f5b86

Browse files
committed
Made background rendering default for testing
1 parent 9a2d02d commit a7f5b86

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Packages/testing/regression.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ def init(*args, **kwargs):
2020
testingDir = os.path.join(os.path.dirname(__file__), "..")
2121
sys.path.append(testingDir)
2222

23-
vcsinst = vcs.init(*args, **kwargs)
24-
vcsinst.setantialiasing(0)
25-
vcsinst.drawlogooff()
26-
2723
if ((('bg' in kwargs and kwargs['bg']) or ('bg' not in kwargs)) and
2824
('geometry' not in kwargs)):
25+
vcsinst = vcs.init(*args, **dict(kwargs, bg=1))
2926
vcsinst.setbgoutputdimensions(1200, 1091, units="pixels")
27+
else:
28+
vcsinst = vcs.init(*args, **dict(kwargs, bg=0))
29+
30+
vcsinst.setantialiasing(0)
31+
vcsinst.drawlogooff()
3032
return vcsinst
3133

3234
def run(vcsinst, fname, baseline=sys.argv[1], threshold=defaultThreshold):

0 commit comments

Comments
 (0)