parent
edfcee84a9
commit
4773540728
@ -222,10 +222,10 @@ class FunctionTests(_BaseTest, googletest.TestCase):
|
||||
|
||||
def testOpen(self):
|
||||
with gfile.Open(self.tmp + "test_open", "wb") as f:
|
||||
f.write("foo")
|
||||
f.write(b"foo")
|
||||
with gfile.Open(self.tmp + "test_open") as f:
|
||||
result = f.readlines()
|
||||
self.assertEqual([b"foo"], result)
|
||||
self.assertEqual(["foo"], result)
|
||||
|
||||
if __name__ == "__main__":
|
||||
googletest.main()
|
||||
|
Loading…
Reference in New Issue
Block a user