❌ Test failed
Test | v_univar_test |
Testsuite | ./vector/v.univar |
Test file | ./vector/v.univar/testsuite/v_univar_test.py |
Status | FAILED |
Return code | 1 |
Number of tests | 6 |
Successful tests | 0 |
Failed tests | 6 |
Percent successful | 0% |
Test duration | 0:00:01.075286 |
/usr/lib/python2.7/xml/etree/ElementTree.py:1638: DeprecationWarning: This method of XMLParser is deprecated. Define doctype() method on the TreeBuilder target. DeprecationWarning, FEEEFE ====================================================================== ERROR: test_flage (__main__.TestProfiling) Testing flag e with map geology ---------------------------------------------------------------------- Traceback (most recent call last): File "vector/v.univar/testsuite/v_univar_test.py", line 63, in test_flage v_univar.run() File "etc/python/grass/pygrass/modules/interface/module.py", line 772, in run self.wait() File "etc/python/grass/pygrass/modules/interface/module.py", line 797, in wait module=self.name, errors=stderr) CalledModuleError: Module run v.univar v.univar map=geology layer=1 type=point,line,area column=PERIMETER percentile=90 -e ended with error Process ended with non-zero return code 1. See the following errors: WARNING: Extended statistics is currently supported only for points/centroids ERROR: Column <PERIMETER> not found in table <geology> ====================================================================== ERROR: test_flagg (__main__.TestProfiling) Testing flag g with map census ---------------------------------------------------------------------- Traceback (most recent call last): File "vector/v.univar/testsuite/v_univar_test.py", line 36, in test_flagg v_univar.run() File "etc/python/grass/pygrass/modules/interface/module.py", line 772, in run self.wait() File "etc/python/grass/pygrass/modules/interface/module.py", line 797, in wait module=self.name, errors=stderr) CalledModuleError: Module run v.univar v.univar map=census layer=1 type=point,line,area column=cat percentile=90 -g ended with error Process ended with non-zero return code 1. See the following errors: ERROR: Vector map <census> not found ====================================================================== ERROR: test_flagw (__main__.TestProfiling) Testing flag w with map lakes ---------------------------------------------------------------------- Traceback (most recent call last): File "vector/v.univar/testsuite/v_univar_test.py", line 79, in test_flagw v_univar.run() File "etc/python/grass/pygrass/modules/interface/module.py", line 772, in run self.wait() File "etc/python/grass/pygrass/modules/interface/module.py", line 797, in wait module=self.name, errors=stderr) CalledModuleError: Module run v.univar v.univar map=lakes layer=1 type=point,line,area column=FULL_HYDRO percentile=90 -w ended with error Process ended with non-zero return code 1. See the following errors: ERROR: Vector map <lakes> not found ====================================================================== ERROR: test_output2 (__main__.TestProfiling) Testing output of v.univar ---------------------------------------------------------------------- Traceback (most recent call last): File "vector/v.univar/testsuite/v_univar_test.py", line 124, in test_output2 self.assertVectorFitsUnivar(map='roadsmajor', column='MAJORRDS_', reference=univar_string, precision=3) File "etc/python/grass/gunittest/case.py", line 446, in assertVectorFitsUnivar **parameters) File "etc/python/grass/gunittest/case.py", line 227, in assertModuleKeyValue self.runModule(module, expecting_stdout=True) File "etc/python/grass/gunittest/case.py", line 1098, in runModule errors=errors) CalledModuleError: Module run 1 v.univar ended with error Process ended with non-zero return code v.univar(map='roadsmajor', layer='1', type=['point', 'line', 'area'], column='MAJORRDS_', percentile=90, flags=u'g'). See the following errors: ERROR: Column <MAJORRDS_> not found in table <roadsmajor> ====================================================================== FAIL: test_flagd (__main__.TestProfiling) Testing flag d with map hospitals ---------------------------------------------------------------------- Traceback (most recent call last): File "vector/v.univar/testsuite/v_univar_test.py", line 104, in test_flagd reference=univar_string) File "etc/python/grass/gunittest/case.py", line 197, in assertLooksLike self.fail(self._formatMessage(msg, standardMsg)) AssertionError: "number of primitives: 147 number of non zero distances: 10585 number of zero distances: 0 minimum: 6.89708 maximum: 227104 range: 227097 sum: 7.50157e+08 mean: 70869.8 mean of absolute values: 70869.8 population standard deviation: 42443.2 population variance: 1.80142e+09 population coefficient of variation: 0.598889 sample standard deviation: 42445.2 sample variance: 1.80159e+09 kurtosis: 0.0421555 skewness: 0.427868 " does not correspond with "number of primitives: 160 number of non zero distances: 12561 number of zero distances: 0 minimum: 9.16773 maximum: 760776 range: 760767 sum: 2.69047e+09 mean: 214193 mean of absolute values: 214193 population standard deviation: 128505 population variance: 1.65136e+10 population coefficient of variation: 0.599953 sample standard deviation: 128511 sample variance: 1.6515e+10 kurtosis: 0.277564 skewness: 0.801646" ====================================================================== FAIL: test_output (__main__.TestProfiling) Testing output of v.univar ---------------------------------------------------------------------- Traceback (most recent call last): File "vector/v.univar/testsuite/v_univar_test.py", line 114, in test_output self.assertVectorFitsUnivar(map='hospitals', column='cat', reference=univar_string, precision=3) File "etc/python/grass/gunittest/case.py", line 446, in assertVectorFitsUnivar **parameters) File "etc/python/grass/gunittest/case.py", line 254, in assertModuleKeyValue self.fail(self._formatMessage(msg, stdMsg)) AssertionError: v.univar map=hospitals layer=1 type=point,line,area column=cat percentile=90 -g difference: mismatch values (key, reference, actual): [('max', 160, 147), ('mean', 80.5, 73.9324), ('n', 160, 148), ('range', 159, 146), ('sum', 12880, 10942)] command: v.univar map=hospitals layer=1 type=point,line,area column=cat percentile=90 -g {'column': 'cat', 'map': 'hospitals', 'flags': 'g'} ---------------------------------------------------------------------- Ran 6 tests in 0.369s FAILED (failures=2, errors=4)