<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Dear Sunveer,</div>
<div> </div>
<div>a quick test within a GRASS session shows here:</div>
<div> </div>
<div>Traceback (most recent call last):<br/>
File "6356860993011712_1512832886_vtest.py", line 3, in <module><br/>
class TestVunivar(TestCase):<br/>
File "6356860993011712_1512832886_vtest.py", line 42, in TestVunivar<br/>
if os.path.isfile(self.outfile):<br/>
NameError: name 'os' is not defined</div>
<div> </div>
<div>it seems that the 'os' python module [1] isn't imported at the beginning of your script.</div>
<div> </div>
<div>further, have you double checked your used v.univar-parameter in your script with the v.univar manual [2]</div>
<div> </div>
<div>please wait for your mentors reply or ask in the meantime the community on the GRASS user/dev mailing list how a good GRASS test script has to look like.</div>
<div> </div>
<div>Kind regards</div>
<div>Helmut</div>
<div> </div>
<div>OSGeo GCI admin</div>
<div> </div>
<div>[1] https://docs.python.org/2/library/os.html</div>
<div>[2] https://grass.osgeo.org/grass72/manuals/v.univar.html</div>
<div class="signature">.... . .__.. .__.. ..<br/>
helmut kudrnovsky<br/>
<br/>
<br/>
osgeo | wiki.osgeo.org/wiki/Helmut_Kudrnovsky<br/>
<br/>
Now is better than never.<br/>
Although never is often better than *right* now.<br/>
(The Zen of Python)</div>
<div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Montag, 11. Dezember 2017 um 08:10 Uhr<br/>
<b>Von:</b> "ss gci" <singhsunveer54@gmail.com><br/>
<b>An:</b> gci-discuss@lists.osgeo.org<br/>
<b>Betreff:</b> [GCI-discuss] Regarding Test</div>
<div name="quoted-content">
<div>
<div>I am doing test on v.univar and when i run that in grass</div>
i got this error every time :_<br/>
"python vtest.py<br/>
Traceback (most recent call last):<br/>
File "<input>", line 1, in <module><br/>
NameError: name 'python' is not defined"<br/>
</div>
_______________________________________________ GCI-discuss mailing list GCI-discuss@lists.osgeo.org <a href="https://lists.osgeo.org/mailman/listinfo/gci-discuss" target="_blank">https://lists.osgeo.org/mailman/listinfo/gci-discuss</a></div>
</div>
</div>
</div></div></body></html>