зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1428716 - Bump mozsystemmonitor to v1.0.0 and add classifiers. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D47203 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
eb3ea96701
Коммит
dc7639a923
|
@ -8,7 +8,7 @@ import os
|
|||
|
||||
from setuptools import setup
|
||||
|
||||
PACKAGE_VERSION = '0.4'
|
||||
PACKAGE_VERSION = '1.0.0'
|
||||
|
||||
try:
|
||||
pwd = os.path.dirname(os.path.abspath(__file__))
|
||||
|
@ -20,6 +20,9 @@ setup(
|
|||
name='mozsystemmonitor',
|
||||
description='Monitor system resource usage.',
|
||||
long_description="see https://firefox-source-docs.mozilla.org/mozbase/index.html",
|
||||
classifiers=['Programming Language :: Python :: 2.7',
|
||||
'Programming Language :: Python :: 3.5'],
|
||||
# Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
|
||||
license='MPL 2.0',
|
||||
keywords='mozilla',
|
||||
author='Mozilla Automation and Tools Team',
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
[DEFAULT]
|
||||
subsuite = mozbase
|
||||
skip-if = python == 3
|
||||
[test_resource_monitor.py]
|
||||
|
|
|
@ -61,7 +61,7 @@ class TestResourceMonitor(unittest.TestCase):
|
|||
monitor.stop()
|
||||
|
||||
self.assertEqual(len(monitor.phases), 2)
|
||||
self.assertEqual(['phase2', 'phase1'], monitor.phases.keys())
|
||||
self.assertEqual(['phase2', 'phase1'], list(monitor.phases.keys()))
|
||||
|
||||
all = list(monitor.range_usage())
|
||||
data1 = list(monitor.phase_usage('phase1'))
|
||||
|
|
Загрузка…
Ссылка в новой задаче