8000 matplotlib/tests.py at master · keithbriggs/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":".circleci","path":".circleci","contentType":"directory"},{"name":".github","path":".github","contentType":"directory"},{"name":"LICENSE","path":"LICENSE","contentType":"directory"},{"name":"ci","path":"ci","contentType":"directory"},{"name":"doc","path":"doc","contentType":"directory"},{"name":"examples","path":"examples","contentType":"directory"},{"name":"extern","path":"extern","contentType":"directory"},{"name":"lib","path":"lib","contentType":"directory"},{"name":"release","path":"release","contentType":"directory"},{"name":"src","path":"src","contentType":"directory"},{"name":"tools","path":"tools","contentType":"directory"},{"name":"tutorials","path":"tutorials","contentType":"directory"},{"name":"unit","path":"unit","contentType":"directory"},{"name":".appveyor.yml","path":".appveyor.yml","contentType":"file"},{"name":".coveragerc","path":".coveragerc","contentType":"file"},{"name":".gitattributes","path":".gitattributes","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".mailmap","path":".mailmap","contentType":"file"},{"name":".travis.yml","path":".travis.yml","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"INSTALL.rst","path":"INSTALL.rst","contentType":"file"},{"name":"MANIFEST.in","path":"MANIFEST.in","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"README.rst","path":"README.rst","contentType":"file"},{"name":"build_alllocal.cmd","path":"build_alllocal.cmd","contentType":"file"},{"name":"distribute_setup.py","path":"distribute_setup.py","contentType":"file"},{"name":"doc-requirements.txt","path":"doc-requirements.txt","contentType":"file"},{"name":"matplotlibrc.template","path":"matplotlibrc.template","contentType":"file"},{"name":"pytest.ini","path":"pytest.ini","contentType":"file"},{"name":"setup.cfg.template","path":"setup.cfg.template","contentType":"file"},{"name":"setup.py","path":"setup.py","contentType":"file"},{"name":"setup_external_compile.py","path":"setup_external_compile.py","contentType":"file"},{"name":"setup_tests_only.py","path":"setup_tests_only.py","contentType":"file"},{"name":"setupext.py","path":"setupext.py","contentType":"file"},{"name":"tests.py","path":"tests.py","contentType":"file"},{"name":"tox.ini","path":"tox.ini","contentType":"file"},{"name":"versioneer.py","path":"versioneer.py","contentType":"file"}],"totalCount":37}},"fileTreeProcessingTime":10.80883,"foldersToFetch":[],"incompleteFileTree":false,"repo":{"id":98919405,"defaultBranch":"master","name":"matplotlib","ownerLogin":"keithbriggs","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2017-07-31T18:50:27.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/5146641?v=4","public":true,"private":false,"isOrgOwned":false},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"master","listCacheKey":"v0:1615300691.104596","canEdit":false,"refType":"branch","currentOid":"723e47b9b410af78562e40332e95e4fe8c807618"},"path":"tests.py","currentUser":null,"blob":{"rawLines":["#!/usr/bin/env python","#","# This allows running the matplotlib tests from the command line: e.g.","#","# $ python tests.py -v -d","#","# The arguments are identical to the arguments accepted by py.test.","#","# See http://doc.pytest.org/ for a detailed description of these options.","","import sys","import argparse","","","if __name__ == '__main__':",""," import dateutil.parser"," try:"," import setuptools"," except ImportError:"," pass",""," # The warnings need to be before any of matplotlib imports, but after"," # dateutil.parser and setuptools (if present) which has syntax error with"," # the warnings enabled. Filtering by module does not work as this will be"," # raised by Python itself so `module=matplotlib.*` is out of question.",""," import warnings",""," # Python 3.6 deprecate invalid character-pairs \\A, \\* ... in non"," # raw-strings and other things. Let's not re-introduce them"," warnings.filterwarnings('error', '.*invalid escape sequence.*',"," category=DeprecationWarning)"," warnings.filterwarnings("," 'default',"," '.*inspect.getargspec\\(\\) is deprecated.*',"," category=DeprecationWarning)",""," from matplotlib import test",""," parser = argparse.ArgumentParser(add_help=False)"," parser.add_argument('--no-network', action='store_true',"," help='Run tests without network connection')"," parser.add_argument('--recursionlimit', type=int, default=0,"," help='Specify recursionlimit for test run')"," args, extra_args = parser.parse_known_args()",""," if args.no_network:"," from matplotlib.testing import disable_internet"," disable_internet.turn_off_internet()"," extra_args.extend(['-m', 'not network'])",""," print('Python byte-compilation optimization level:', sys.flags.optimize)",""," retcode = test(argv=extra_args, switch_backend_warn=False,"," recursionlimit=args.recursionlimit)"," sys.exit(retcode)"],"stylingDirectives":[[[0,21,"pl-c"]],[[0,1,"pl-c"]],[[0,70,"pl-c"]],[[0,1,"pl-c"]],[[0,27,"pl-c"]],[[0,1,"pl-c"]],[[0,67,"pl-c"]],[[0,1,"pl-c"]],[[0,73,"pl-c"]],[],[[0,6,"pl-k"],[7,10,"pl-s1"]],[[0,6,"pl-k"],[7,15,"pl-s1"]],[],[],[[0,2,"pl-k"],[3,11,"pl-s1"],[12,14,"pl-c1"],[15,25,"pl-s"]],[],[[4,10,"pl-k"],[11,19,"pl-s1"],[20,26,"pl-s1"]],[[4,7,"pl-k"]],[[8,14,"pl-k"],[15,25,"pl-s1"]],[[4,10,"pl-k"],[11,22,"pl-v"]],[[8,12,"pl-k"]],[],[[4,73,"pl-c"]],[[4,77,"pl-c"]],[[4,78,"pl-c"]],[[4,74,"pl-c"]],[],[[4,10,"pl-k"],[11,19,"pl-s1"]],[],[[4,68,"pl-c"]],[[4,63,"pl-c"]],[[4,12,"pl-s1"],[13,27,"pl-c1"],[28,35,"pl-s"],[37,66,"pl-s"]],[[8,16,"pl-s1"],[16,17,"pl-c1"],[17,35,"pl-v"]],[[4,12,"pl-s1"],[13,27,"pl-c1"]],[[8,17,"pl-s"]],[[8,50,"pl-s"]],[[8,16,"pl-s1"],[16,17,"pl-c1"],[17,35,"pl-v"]],[],[[4,8,"pl-k"],[9,19,"pl-s1"],[20,26,"pl-k"],[27,31,"pl-s1"]],[],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,21,"pl-s1"],[22,36,"pl-c1"],[37,45,"pl-s1"],[45,46,"pl-c1"],[46,51,"pl-c1"]],[[4,10,"pl-s1"],[11,23,"pl-c1"],[24,38,"pl-s"],[40,46,"pl-s1"],[46,47,"pl-c1"],[47,59,"pl-s"]],[[24,28,"pl-s1"],[28,29,"pl-c1"],[29,67,"pl-s"]],[[4,10,"pl-s1"],[11,23,"pl-c1"],[24,42,"pl-s"],[44,48,"pl-s1"],[48,49,"pl-c1"],[49,52,"pl-s1"],[54,61,"pl-s1"],[61,62,"pl-c1"],[62,63,"pl-c1"]],[[24,28,"pl-s1"],[28,29,"pl-c1"],[29,66,"pl-s"]],[[4,8,"pl-s1"],[10,20,"pl-s1"],[21,22,"pl-c1"],[23,29,"pl-s1"],[30,46,"pl-c1"]],[],[[4,6,"pl-k"],[7,11,"pl-s1"],[12,22,"pl-c1"]],[[8,12,"pl-k"],[13,23,"pl-s1"],[24,31,"pl-s1"],[32,38,"pl-k"],[39,55,"pl-s1"]],[[8,24,"pl-s1"],[25,42,"pl-c1"]],[[8,18,"pl-s1"],[19,25,"pl-c1"],[27,31,"pl-s"],[33,46,"pl-s"]],[],[[4,9,"pl-en"],[10,55,"pl-s"],[57,60,"pl-s1"],[61,66,"pl-c1"],[67,75,"pl-c1"]],[],[[4,11,"pl-s1"],[12,13,"pl-c1"],[14,18,"pl-en"],[19,23,"pl-s1"],[23,24,"pl-c1"],[24,34,"pl-s1"],[36,55,"pl-s1"],[55,56,"pl-c1"],[56,61,"pl-c1"]],[[19,33,"pl-s1"],[33,34,"pl-c1"],[34,38,"pl-s1"],[39,53,"pl-c1"]],[[4,7,"pl-s1"],[8,12,"pl-c1"],[13,20,"pl-s1"]]],"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/keithbriggs/matplotlib/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"tests.py","displayUrl":"https://github.com/keithbriggs/matplotlib/blob/master/tests.py?raw=true","headerInfo":{"blobSize":"1.88 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"88d3e21","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fkeithbriggs%2Fmatplotlib%2Fblob%2Fmaster%2Ftests.py","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"57","truncatedSloc":"45"},"mode":"executable file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Python","languageID":303,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/keithbriggs/matplotlib/blob/master/tests.py","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/keithbriggs/matplotlib/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/keithbriggs/matplotlib/raw/refs/heads/master/tests.py","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":null},"copilotInfo":null,"copilotAccessAllowed":false,"modelsAccessAllowed":false,"modelsRepoIntegrationEnabled":false,"csrf_tokens":{"/keithbriggs/matplotlib/branches":{"post":"yc_t_6JpRMVCvEgsgqzX498FjdV7MBewNSdI0lEJn88pZrN3OQe9QvkgWOeYgHObaaOmn0AgaWI1Jfrz2yd4jw"},"/repos/preferences":{"post":"TCdpEDMFxap2YgQAuavcJ1xQheQtYFjoN3fI1KQUZsMOJt_BgYYV_fnAAn34KGuFJyr6J31jstcGcWHFwv2x9A"}}},"title":"matplotlib/tests.py at master · keithbriggs/matplotlib","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1b17b3e7786a.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}
0