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

Unified Diff: tools/telemetry/third_party/modulegraph/modulegraph_tests/test_relimport2.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_relimport2.py
diff --git a/tools/telemetry/third_party/modulegraph/modulegraph_tests/test_relimport2.py b/tools/telemetry/third_party/modulegraph/modulegraph_tests/test_relimport2.py
deleted file mode 100644
index 0a465a28075c4e0f504cd1449b5fa5023f1be759..0000000000000000000000000000000000000000
--- a/tools/telemetry/third_party/modulegraph/modulegraph_tests/test_relimport2.py
+++ /dev/null
@@ -1,45 +0,0 @@
-"""
-Test for import machinery
-"""
-import unittest
-import sys
-import textwrap
-import subprocess
-import os
-from modulegraph import modulegraph
-
-class TestModuleGraphImport (unittest.TestCase):
- if not hasattr(unittest.TestCase, 'assertIsInstance'):
- def assertIsInstance(self, value, types):
- if not isinstance(value, types):
- self.fail("%r is not an instance of %r"%(value, types))
-
- def setUp(self):
- self.root = os.path.join(
- os.path.dirname(os.path.abspath(__file__)),
- 'testpkg-relimport2')
- self.mf = modulegraph.ModuleGraph(path=[ self.root ] + sys.path)
-
-
- def test_init_as_script(self):
- self.mf.run_script(os.path.join(self.root, 'pkg/__init__.py'))
- n = self.mf.findNode('mod1')
- self.assertIs(n, None)
-
- n = self.mf.findNode('mod2')
- self.assertIsInstance(n, modulegraph.MissingModule)
-
- def test_subpkg_bad_import(self):
- self.mf.import_hook('pkg.sub')
-
- n = self.mf.findNode('toplevel')
- self.assertIs(n, None)
-
- n = self.mf.findNode('pkg.mod1')
- self.assertIsInstance(n, modulegraph.SourceModule)
-
- n = self.mf.findNode('pkg.mod3')
- self.assertIsInstance(n, modulegraph.SourceModule)
-
-if __name__ == "__main__":
- unittest.main()

Powered by Google App Engine
This is Rietveld 408576698