This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpytest.js
1 lines (1 loc) · 15.2 KB
/
pytest.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="pytest.data";var REMOTE_PACKAGE_BASE="pytest.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","_pytest",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/_pytest","mark",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/_pytest","config",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/_pytest","_code",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/_pytest","assertion",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages","pytest-3.6.3-py3.7.egg-info",true,true);Module["FS_createPath"]("/","bin",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:375903,cachedIndexes:[-1,-1],cachedChunks:[null,null],offsets:[0,1275,2553,3813,4819,5889,7168,8542,9692,10849,11893,13032,14174,15118,16182,17395,18574,19848,20985,21886,22961,24203,25531,26535,27548,28377,29656,30991,31983,33120,34337,35642,37097,38382,39811,40866,41932,43228,44596,45836,47004,48233,49386,50612,51914,53328,54640,55834,57221,58579,59717,61127,62437,63641,64919,66108,67107,68337,69565,70804,71962,73206,74557,75914,77156,78431,79454,80710,81886,83092,84400,85577,86671,87867,89103,90256,91443,92577,93812,95100,96354,97631,98831,99795,100934,102227,103428,104610,105889,106902,108074,109196,110298,111500,112617,113866,114976,116403,117654,118935,120245,121494,122695,123997,125069,126188,127352,128496,129549,130835,131962,133216,134476,135462,136677,138009,139215,140366,141544,142764,144142,145257,146448,147457,148605,150071,151334,152509,153716,155107,156158,157299,158530,159777,160998,162171,163358,164478,165604,166875,167995,169265,170427,171546,172673,173962,175142,176248,177380,178530,179685,180871,181822,182877,183981,185095,186271,187391,188345,189750,191146,192318,193869,195062,196100,196950,198187,199442,200560,201404,202428,203603,204970,206299,207448,208629,209574,210582,211630,212672,213724,214793,215973,217173,218661,219814,220860,222012,223005,224411,225672,226921,228399,229724,230887,232245,233519,234729,235865,237137,238255,239346,240542,241819,243126,244303,245318,246532,247787,248932,250124,251237,252431,253664,254979,256005,257162,258375,259357,260714,261868,263158,264400,265751,266997,268207,269443,270676,271679,273077,274378,275689,276651,277842,279145,280302,281720,282656,283682,284871,286155,287432,288675,289964,291301,292461,293701,294790,295876,297144,298404,299607,300832,302054,303272,304421,305583,306819,308104,309144,310335,311617,312832,314227,315559,316693,317908,319060,320294,321509,322650,323774,324990,326140,327282,328483,329472,330440,331423,332493,333837,335171,336439,337759,338954,340205,341735,343047,344333,345558,346925,348268,349345,350513,351812,353030,354164,355081,356227,357645,358944,359994,361120,362247,363381,364642,365847,367188,368397,369541,369925,370798,371657,372720,373835,375097],sizes:[1275,1278,1260,1006,1070,1279,1374,1150,1157,1044,1139,1142,944,1064,1213,1179,1274,1137,901,1075,1242,1328,1004,1013,829,1279,1335,992,1137,1217,1305,1455,1285,1429,1055,1066,1296,1368,1240,1168,1229,1153,1226,1302,1414,1312,1194,1387,1358,1138,1410,1310,1204,1278,1189,999,1230,1228,1239,1158,1244,1351,1357,1242,1275,1023,1256,1176,1206,1308,1177,1094,1196,1236,1153,1187,1134,1235,1288,1254,1277,1200,964,1139,1293,1201,1182,1279,1013,1172,1122,1102,1202,1117,1249,1110,1427,1251,1281,1310,1249,1201,1302,1072,1119,1164,1144,1053,1286,1127,1254,1260,986,1215,1332,1206,1151,1178,1220,1378,1115,1191,1009,1148,1466,1263,1175,1207,1391,1051,1141,1231,1247,1221,1173,1187,1120,1126,1271,1120,1270,1162,1119,1127,1289,1180,1106,1132,1150,1155,1186,951,1055,1104,1114,1176,1120,954,1405,1396,1172,1551,1193,1038,850,1237,1255,1118,844,1024,1175,1367,1329,1149,1181,945,1008,1048,1042,1052,1069,1180,1200,1488,1153,1046,1152,993,1406,1261,1249,1478,1325,1163,1358,1274,1210,1136,1272,1118,1091,1196,1277,1307,1177,1015,1214,1255,1145,1192,1113,1194,1233,1315,1026,1157,1213,982,1357,1154,1290,1242,1351,1246,1210,1236,1233,1003,1398,1301,1311,962,1191,1303,1157,1418,936,1026,1189,1284,1277,1243,1289,1337,1160,1240,1089,1086,1268,1260,1203,1225,1222,1218,1149,1162,1236,1285,1040,1191,1282,1215,1395,1332,1134,1215,1152,1234,1215,1141,1124,1216,1150,1142,1201,989,968,983,1070,1344,1334,1268,1320,1195,1251,1530,1312,1286,1225,1367,1343,1077,1168,1299,1218,1134,917,1146,1418,1299,1050,1126,1127,1134,1261,1205,1341,1209,1144,384,873,859,1063,1115,1262,806],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,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_pytest.data")}Module["addRunDependency"]("datafile_pytest.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/pytest.py",start:0,end:1712,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/cacheprovider.py",start:1712,end:13683,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/_version.py",start:13683,end:13799,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/unittest.py",start:13799,end:22372,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/logging.py",start:22372,end:42002,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/capture.py",start:42002,end:65374,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/monkeypatch.py",start:65374,end:75180,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/nodes.py",start:75180,end:89107,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/compat.py",start:89107,end:99869,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/tmpdir.py",start:99869,end:104135,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/freeze_support.py",start:104135,end:105330,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/runner.py",start:105330,end:122855,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/pastebin.py",start:122855,end:126491,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/fixtures.py",start:126491,end:173409,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/helpconfig.py",start:173409,end:180104,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/doctest.py",start:180104,end:197051,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/python.py",start:197051,end:244637,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/recwarn.py",start:244637,end:253246,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/_argcomplete.py",start:253246,end:256926,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/setupplan.py",start:256926,end:257749,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/debugging.py",start:257749,end:262802,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/main.py",start:262802,end:283207,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/warnings.py",start:283207,end:286537,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/skipping.py",start:286537,end:296617,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/terminal.py",start:296617,end:325422,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/deprecated.py",start:325422,end:328034,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/setuponly.py",start:328034,end:330657,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/junitxml.py",start:330657,end:349679,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/outcomes.py",start:349679,end:354488,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/hookspec.py",start:354488,end:372822,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/nose.py",start:372822,end:375411,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/__init__.py",start:375411,end:375650,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/python_api.py",start:375650,end:400303,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/pytester.py",start:400303,end:442938,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/resultlog.py",start:442938,end:446662,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/mark/structures.py",start:446662,end:460178,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/mark/legacy.py",start:460178,end:463224,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/mark/evaluate.py",start:463224,end:466994,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/mark/__init__.py",start:466994,end:472159,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/config/exceptions.py",start:472159,end:472388,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/config/findpaths.py",start:472388,end:477397,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/config/argparsing.py",start:477397,end:492515,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/config/__init__.py",start:492515,end:526746,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/_code/source.py",start:526746,end:538916,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/_code/code.py",start:538916,end:571371,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/_code/__init__.py",start:571371,end:571781,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/_code/_py2traceback.py",start:571781,end:574786,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/assertion/rewrite.py",start:574786,end:610858,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/assertion/util.py",start:610858,end:622351,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/assertion/truncate.py",start:622351,end:625682,audio:0},{filename:"/lib/python3.7/site-packages/_pytest/assertion/__init__.py",start:625682,end:630807,audio:0},{filename:"/lib/python3.7/site-packages/pytest-3.6.3-py3.7.egg-info/entry_points.txt",start:630807,end:630869,audio:0},{filename:"/lib/python3.7/site-packages/pytest-3.6.3-py3.7.egg-info/SOURCES.txt",start:630869,end:639849,audio:0},{filename:"/lib/python3.7/site-packages/pytest-3.6.3-py3.7.egg-info/not-zip-safe",start:639849,end:639850,audio:0},{filename:"/lib/python3.7/site-packages/pytest-3.6.3-py3.7.egg-info/PKG-INFO",start:639850,end:645779,audio:0},{filename:"/lib/python3.7/site-packages/pytest-3.6.3-py3.7.egg-info/dependency_links.txt",start:645779,end:645780,audio:0},{filename:"/lib/python3.7/site-packages/pytest-3.6.3-py3.7.egg-info/top_level.txt",start:645780,end:645795,audio:0},{filename:"/lib/python3.7/site-packages/pytest-3.6.3-py3.7.egg-info/requires.txt",start:645795,end:645972,audio:0},{filename:"/bin/py.test",start:645972,end:646414,audio:0},{filename:"/bin/pytest",start:646414,end:646854,audio:0}],remote_package_size:379999,package_uuid:"95f7ef55-668f-42b1-8100-4f3a084fdeb9"})})();