Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: tools/telemetry/third_party/modulegraph/modulegraph_tests/test_explicit_packages.py

Issue 1647513002: Delete tools/telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/third_party/modulegraph/modulegraph_tests/test_explicit_packages.py
diff --git a/tools/telemetry/third_party/modulegraph/modulegraph_tests/test_explicit_packages.py b/tools/telemetry/third_party/modulegraph/modulegraph_tests/test_explicit_packages.py
deleted file mode 100644
index a964e4f48c4c3d296efe4a7fa2568e3ee7c92021..0000000000000000000000000000000000000000
--- a/tools/telemetry/third_party/modulegraph/modulegraph_tests/test_explicit_packages.py
+++ /dev/null
@@ -1,51 +0,0 @@
-from __future__ import absolute_import
-import unittest
-
-import os, shutil, sys
-
-from modulegraph import find_modules
-from modulegraph import modulegraph
-
-
-class PackagesTestCase (unittest.TestCase):
- if not hasattr(unittest.TestCase, 'assertIsInstance'):
- def assertIsInstance(self, object, types, message=None):
- self.assertTrue(isinstance(object, types),
- message or '%r is not an instance of %r'%(object, types))
-
- def testIncludePackage(self):
- root = os.path.join(
- os.path.dirname(os.path.abspath(__file__)),
- 'testpkg-packages')
-
- mf = find_modules.find_modules(
- path=[root]+sys.path,
- scripts=[os.path.join(root, "main_script.py")],
- packages=['pkg'],
- debug=1)
-
- node = mf.findNode('pkg')
- self.assertIsInstance(node, modulegraph.Package)
-
- node = mf.findNode('pkg.sub3')
- self.assertIsInstance(node, modulegraph.SourceModule)
-
- def testIncludePackageWithExclude(self):
- root = os.path.join(
- os.path.dirname(os.path.abspath(__file__)),
- 'testpkg-packages')
-
- mf = find_modules.find_modules(
- path=[root]+sys.path,
- scripts=[os.path.join(root, "main_script.py")],
- packages=['pkg'],
- excludes=['pkg.sub3'])
-
- node = mf.findNode('pkg')
- self.assertIsInstance(node, modulegraph.Package)
-
- node = mf.findNode('pkg.sub3')
- self.assertIsInstance(node, modulegraph.ExcludedModule)
-
-if __name__ == '__main__':
- unittest.main()

Powered by Google App Engine
This is Rietveld 408576698