forked from iodide-project/pyodide-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nose.js
1 lines (1 loc) · 14 KB
/
nose.js
1
var Module=typeof pyodide._module!=="undefined"?pyodide._module:{};Module.checkABI(1);if(!Module.expectedDataFileDownloads){Module.expectedDataFileDownloads=0;Module.finishedDataFileDownloads=0}Module.expectedDataFileDownloads++;(function(){var loadPackage=function(metadata){var PACKAGE_PATH;if(typeof window==="object"){PACKAGE_PATH=window["encodeURIComponent"](window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/")}else if(typeof location!=="undefined"){PACKAGE_PATH=encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/")}else{throw"using preloaded data can only be done on a web page or in a web worker"}var PACKAGE_NAME="nose.data";var REMOTE_PACKAGE_BASE="nose.data";if(typeof Module["locateFilePackage"]==="function"&&!Module["locateFile"]){Module["locateFile"]=Module["locateFilePackage"];err("warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)")}var REMOTE_PACKAGE_NAME=Module["locateFile"]?Module["locateFile"](REMOTE_PACKAGE_BASE,""):REMOTE_PACKAGE_BASE;var REMOTE_PACKAGE_SIZE=metadata.remote_package_size;var PACKAGE_UUID=metadata.package_uuid;function fetchRemotePackage(packageName,packageSize,callback,errback){var xhr=new XMLHttpRequest;xhr.open("GET",packageName,true);xhr.responseType="arraybuffer";xhr.onprogress=function(event){var url=packageName;var size=packageSize;if(event.total)size=event.total;if(event.loaded){if(!xhr.addedTotal){xhr.addedTotal=true;if(!Module.dataFileDownloads)Module.dataFileDownloads={};Module.dataFileDownloads[url]={loaded:event.loaded,total:size}}else{Module.dataFileDownloads[url].loaded=event.loaded}var total=0;var loaded=0;var num=0;for(var download in Module.dataFileDownloads){var data=Module.dataFileDownloads[download];total+=data.total;loaded+=data.loaded;num++}total=Math.ceil(total*Module.expectedDataFileDownloads/num);if(Module["setStatus"])Module["setStatus"]("Downloading data... ("+loaded+"/"+total+")")}else if(!Module.dataFileDownloads){if(Module["setStatus"])Module["setStatus"]("Downloading data...")}};xhr.onerror=function(event){throw new Error("NetworkError for: "+packageName)};xhr.onload=function(event){if(xhr.status==200||xhr.status==304||xhr.status==206||xhr.status==0&&xhr.response){var packageData=xhr.response;callback(packageData)}else{throw new Error(xhr.statusText+" : "+xhr.responseURL)}};xhr.send(null)}function handleError(error){console.error("package error:",error)}var fetchedCallback=null;var fetched=Module["getPreloadedPackage"]?Module["getPreloadedPackage"](REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE):null;if(!fetched)fetchRemotePackage(REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE,function(data){if(fetchedCallback){fetchedCallback(data);fetchedCallback=null}else{fetched=data}},handleError);function runWithFS(){function assert(check,msg){if(!check)throw msg+(new Error).stack}Module["FS_createPath"]("/","lib",true,true);Module["FS_createPath"]("/lib","python3.7",true,true);Module["FS_createPath"]("/lib/python3.7","site-packages",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages","nose-1.3.7-py3.7.egg-info",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages","nose",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/nose","plugins",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/nose","ext",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/nose","tools",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/nose","sphinx",true,true);Module["FS_createPath"]("/","bin",true,true);Module["FS_createPath"]("/","man",true,true);Module["FS_createPath"]("/man","man1",true,true);function DataRequest(start,end,audio){this.start=start;this.end=end;this.audio=audio}DataRequest.prototype={requests:{},open:function(mode,name){this.name=name;this.requests[name]=this;Module["addRunDependency"]("fp "+this.name)},send:function(){},onload:function(){var byteArray=this.byteArray.subarray(this.start,this.end);this.finish(byteArray)},finish:function(byteArray){var that=this;Module["FS_createPreloadedFile"](this.name,null,byteArray,true,true,function(){Module["removeRunDependency"]("fp "+that.name)},function(){if(that.audio){Module["removeRunDependency"]("fp "+that.name)}else{err("Preloading file "+that.name+" failed")}},false,true);this.requests[this.name]=null}};function processPackageData(arrayBuffer){Module.finishedDataFileDownloads++;assert(arrayBuffer,"Loading data file failed.");assert(arrayBuffer instanceof ArrayBuffer,"bad input to processPackageData");var byteArray=new Uint8Array(arrayBuffer);var curr;var compressedData={data:null,cachedOffset:296862,cachedIndexes:[-1,-1],cachedChunks:[null,null],offsets:[0,1081,1731,2267,2838,3395,3947,4766,5466,6687,8092,8981,10135,11065,12246,13356,14438,15488,16562,17658,18638,19735,21070,22327,23365,24662,25947,27221,28076,29146,30670,32158,33498,34611,35787,36939,37994,39167,40345,41432,42359,43376,44429,45432,46681,47834,48978,50278,51518,52755,53869,54935,56223,57652,58898,59992,60887,62116,63534,64934,65895,67252,68278,69517,70715,71848,73114,74300,75477,76482,77709,78900,80252,81426,82608,83822,85025,86280,87591,88904,90145,91470,92666,93834,95205,96383,97590,98633,99676,100629,101892,103022,104235,105218,106407,107693,109005,110170,111453,112443,113600,114953,116270,117528,118865,120280,121556,122762,124082,125280,126594,128054,129348,130694,131842,133185,134331,135241,136467,137807,139051,139952,141233,142351,143501,144854,146114,147213,148384,149585,150460,151556,152928,154223,155524,156583,157562,158275,159499,160712,161953,163072,164175,165530,166710,167997,168895,169998,171187,172086,173274,174333,175579,176684,177674,178507,179911,181344,182375,183464,184594,185674,186851,188031,189250,190721,192232,193554,194480,195503,196588,197731,198722,199686,200597,201698,202924,204146,205272,206301,207385,208459,209523,210227,211222,212157,213231,214555,215877,217312,218634,219979,221278,222478,223586,224753,226312,227742,228682,230049,231455,232878,234171,235485,236653,238059,239236,240580,241937,243054,244261,245554,246689,247789,248832,249944,251174,252077,253263,254417,255475,256751,257870,259168,260364,261542,262578,263813,265318,266637,268011,269363,270511,271482,272716,273997,275312,276544,277901,279439,280685,281852,283138,284198,285399,286573,287938,289435,290743,291971,293239,294259,295573],sizes:[1081,650,536,571,557,552,819,700,1221,1405,889,1154,930,1181,1110,1082,1050,1074,1096,980,1097,1335,1257,1038,1297,1285,1274,855,1070,1524,1488,1340,1113,1176,1152,1055,1173,1178,1087,927,1017,1053,1003,1249,1153,1144,1300,1240,1237,1114,1066,1288,1429,1246,1094,895,1229,1418,1400,961,1357,1026,1239,1198,1133,1266,1186,1177,1005,1227,1191,1352,1174,1182,1214,1203,1255,1311,1313,1241,1325,1196,1168,1371,1178,1207,1043,1043,953,1263,1130,1213,983,1189,1286,1312,1165,1283,990,1157,1353,1317,1258,1337,1415,1276,1206,1320,1198,1314,1460,1294,1346,1148,1343,1146,910,1226,1340,1244,901,1281,1118,1150,1353,1260,1099,1171,1201,875,1096,1372,1295,1301,1059,979,713,1224,1213,1241,1119,1103,1355,1180,1287,898,1103,1189,899,1188,1059,1246,1105,990,833,1404,1433,1031,1089,1130,1080,1177,1180,1219,1471,1511,1322,926,1023,1085,1143,991,964,911,1101,1226,1222,1126,1029,1084,1074,1064,704,995,935,1074,1324,1322,1435,1322,1345,1299,1200,1108,1167,1559,1430,940,1367,1406,1423,1293,1314,1168,1406,1177,1344,1357,1117,1207,1293,1135,1100,1043,1112,1230,903,1186,1154,1058,1276,1119,1298,1196,1178,1036,1235,1505,1319,1374,1352,1148,971,1234,1281,1315,1232,1357,1538,1246,1167,1286,1060,1201,1174,1365,1497,1308,1228,1268,1020,1314,1289],successes:[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]};compressedData.data=byteArray;assert(typeof Module.LZ4==="object","LZ4 not present - was your app build with -s LZ4=1 ?");Module.LZ4.loadPackage({metadata:metadata,compressedData:compressedData});Module["removeRunDependency"]("datafile_nose.data")}Module["addRunDependency"]("datafile_nose.data");if(!Module.preloadResults)Module.preloadResults={};Module.preloadResults[PACKAGE_NAME]={fromCache:false};if(fetched){processPackageData(fetched);fetched=null}else{fetchedCallback=processPackageData}}if(Module["calledRun"]){runWithFS()}else{if(!Module["preRun"])Module["preRun"]=[];Module["preRun"].push(runWithFS)}};loadPackage({files:[{filename:"/lib/python3.7/site-packages/nose-1.3.7-py3.7.egg-info/entry_points.txt",start:0,end:133,audio:0},{filename:"/lib/python3.7/site-packages/nose-1.3.7-py3.7.egg-info/SOURCES.txt",start:133,end:17146,audio:0},{filename:"/lib/python3.7/site-packages/nose-1.3.7-py3.7.egg-info/not-zip-safe",start:17146,end:17147,audio:0},{filename:"/lib/python3.7/site-packages/nose-1.3.7-py3.7.egg-info/PKG-INFO",start:17147,end:19122,audio:0},{filename:"/lib/python3.7/site-packages/nose-1.3.7-py3.7.egg-info/dependency_links.txt",start:19122,end:19123,audio:0},{filename:"/lib/python3.7/site-packages/nose-1.3.7-py3.7.egg-info/top_level.txt",start:19123,end:19128,audio:0},{filename:"/lib/python3.7/site-packages/nose/config.py",start:19128,end:44410,audio:0},{filename:"/lib/python3.7/site-packages/nose/importer.py",start:44410,end:50388,audio:0},{filename:"/lib/python3.7/site-packages/nose/failure.py",start:50388,end:51661,audio:0},{filename:"/lib/python3.7/site-packages/nose/proxy.py",start:51661,end:58540,audio:0},{filename:"/lib/python3.7/site-packages/nose/usage.txt",start:58540,end:62965,audio:0},{filename:"/lib/python3.7/site-packages/nose/loader.py",start:62965,end:88452,audio:0},{filename:"/lib/python3.7/site-packages/nose/result.py",start:88452,end:95193,audio:0},{filename:"/lib/python3.7/site-packages/nose/core.py",start:95193,end:108264,audio:0},{filename:"/lib/python3.7/site-packages/nose/selector.py",start:108264,end:117249,audio:0},{filename:"/lib/python3.7/site-packages/nose/exc.py",start:117249,end:117625,audio:0},{filename:"/lib/python3.7/site-packages/nose/commands.py",start:117625,end:123941,audio:0},{filename:"/lib/python3.7/site-packages/nose/case.py",start:123941,end:137122,audio:0},{filename:"/lib/python3.7/site-packages/nose/util.py",start:137122,end:157456,audio:0},{filename:"/lib/python3.7/site-packages/nose/twistedtools.py",start:157456,end:162996,audio:0},{filename:"/lib/python3.7/site-packages/nose/inspector.py",start:162996,end:169971,audio:0},{filename:"/lib/python3.7/site-packages/nose/suite.py",start:169971,end:192285,audio:0},{filename:"/lib/python3.7/site-packages/nose/pyversion.py",start:192285,end:199739,audio:0},{filename:"/lib/python3.7/site-packages/nose/__init__.py",start:199739,end:200143,audio:0},{filename:"/lib/python3.7/site-packages/nose/__main__.py",start:200143,end:200287,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/debug.py",start:200287,end:202559,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/plugintest.py",start:202559,end:216092,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/builtin.py",start:216092,end:217113,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/capture.py",start:217113,end:220477,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/collect.py",start:220477,end:223590,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/failuredetail.py",start:223590,end:225225,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/isolate.py",start:225225,end:228981,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/skip.py",start:228981,end:231123,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/attrib.py",start:231123,end:240789,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/errorclass.py",start:240789,end:248064,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/prof.py",start:248064,end:253421,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/manager.py",start:253421,end:268998,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/xunit.py",start:268998,end:280643,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/deprecated.py",start:280643,end:282194,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/logcapture.py",start:282194,end:291552,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/base.py",start:291552,end:317610,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/doctests.py",start:317610,end:335088,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/multiprocess.py",start:335088,end:370374,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/cover.py",start:370374,end:382051,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/allmodules.py",start:382051,end:383771,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/__init__.py",start:383771,end:390062,audio:0},{filename:"/lib/python3.7/site-packages/nose/plugins/testid.py",start:390062,end:399979,audio:0},{filename:"/lib/python3.7/site-packages/nose/ext/dtcompat.py",start:399979,end:488086,audio:0},{filename:"/lib/python3.7/site-packages/nose/ext/__init__.py",start:488086,end:488119,audio:0},{filename:"/lib/python3.7/site-packages/nose/tools/trivial.py",start:488119,end:489303,audio:0},{filename:"/lib/python3.7/site-packages/nose/tools/nontrivial.py",start:489303,end:493473,audio:0},{filename:"/lib/python3.7/site-packages/nose/tools/__init__.py",start:493473,end:493909,audio:0},{filename:"/lib/python3.7/site-packages/nose/sphinx/__init__.py",start:493909,end:493914,audio:0},{filename:"/lib/python3.7/site-packages/nose/sphinx/pluginopts.py",start:493914,end:499552,audio:0},{filename:"/bin/nosetests",start:499552,end:499992,audio:0},{filename:"/bin/nosetests-3.7",start:499992,end:500440,audio:0},{filename:"/man/man1/nosetests.1",start:500440,end:518119,audio:0}],remote_package_size:300958,package_uuid:"dbdd4e75-1e13-4839-bc82-3b878b3975aa"})})();