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

Unified Diff: tools/telemetry/third_party/modulegraph/modulegraph_tests/test_basic.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_basic.py
diff --git a/tools/telemetry/third_party/modulegraph/modulegraph_tests/test_basic.py b/tools/telemetry/third_party/modulegraph/modulegraph_tests/test_basic.py
deleted file mode 100644
index 387fde9f736a26ed647f0cc791039f90e3eb3de3..0000000000000000000000000000000000000000
--- a/tools/telemetry/third_party/modulegraph/modulegraph_tests/test_basic.py
+++ /dev/null
@@ -1,43 +0,0 @@
-import unittest
-
-import os, shutil
-
-from modulegraph import modulegraph
-
-class DummyModule(object):
- packagepath = None
- def __init__(self, ppath):
- self.packagepath = ppath
-
-class FindAllSubmodulesTestCase(unittest.TestCase):
- def testNone(self):
- mg = modulegraph.ModuleGraph()
- # empty packagepath
- m = DummyModule(None)
- sub_ms = []
- for sm in mg._find_all_submodules(m):
- sub_ms.append(sm)
- self.assertEqual(sub_ms, [])
-
- def testSimple(self):
- mg = modulegraph.ModuleGraph()
- # a string does not break anything although it is split into its characters
- # BUG: "/hi/there" will read "/"
- m = DummyModule("xyz")
- sub_ms = []
- for sm in mg._find_all_submodules(m):
- sub_ms.append(sm)
- self.assertEqual(sub_ms, [])
-
- def testSlashes(self):
- # a string does not break anything although it is split into its characters
- # BUG: "/xyz" will read "/" so this one already triggers missing itertools
- mg = modulegraph.ModuleGraph()
- m = DummyModule("/xyz")
- sub_ms = []
- for sm in mg._find_all_submodules(m):
- sub_ms.append(sm)
- self.assertEqual(sub_ms, [])
-
-if __name__ == '__main__':
- unittest.main()

Powered by Google App Engine
This is Rietveld 408576698