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

Unified Diff: third_party/typ/typ/tests/host_test.py

Issue 664123005: Roll typ to v0.8.6 / re25b780b0b147580ef248c212b238446264d9d78 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « third_party/typ/typ/runner.py ('k') | third_party/typ/typ/tests/runner_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/typ/typ/tests/host_test.py
diff --git a/third_party/typ/typ/tests/host_test.py b/third_party/typ/typ/tests/host_test.py
index 50db37f5a146cdeaf56285caae5c77a6fcc90c3c..a06085ac3c3d2de76bc53ef4e7351b995d112d3e 100644
--- a/third_party/typ/typ/tests/host_test.py
+++ b/third_party/typ/typ/tests/host_test.py
@@ -130,6 +130,12 @@ class TestHost(unittest.TestCase):
self.assertEqual(h.basename('foo.txt'), 'foo.txt')
self.assertEqual(h.basename('foo/bar.txt'), 'bar.txt')
+ def test_mktempfile(self, delete=False):
+ h = self.host()
+ f= h.mktempfile()
+ f.close()
+ self.assertNotEqual(f.name, None)
+
def test_splitext(self):
h = self.host()
self.assertEqual(h.splitext('foo'), ('foo', ''))
« no previous file with comments | « third_party/typ/typ/runner.py ('k') | third_party/typ/typ/tests/runner_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698