Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fa4a76 commit 8f3dccbCopy full SHA for 8f3dccb
lib/matplotlib/__init__.py
@@ -1536,7 +1536,7 @@ def _get_nose_env():
1536
return env
1537
1538
1539
-def test(verbosity=1):
+def test(verbosity=1, coverage=False):
1540
"""run the matplotlib test suite"""
1541
_init_tests()
1542
@@ -1560,9 +1560,14 @@ def test(verbosity=1):
1560
# a list.
1561
multiprocess._instantiate_plugins = plugins
1562
1563
+ env = _get_nose_env()
1564
+ if coverage:
1565
+ env['NOSE_WITH_COVERAGE'] = 1
1566
+
1567
success = nose.run(
1568
defaultTest=default_test_modules,
1569
config=config,
1570
+ env=env,
1571
)
1572
finally:
1573
if old_backend.lower() != 'agg':
0 commit comments