Пример #1
0
 def test_sameopenfile(self):
     fname = support.TESTFN + "1"
     with open(fname, "wb") as a, open(fname, "wb") as b:
         self.assertTrue(posixpath.sameopenfile(a.fileno(), b.fileno()))
Пример #2
0
 def test_sameopenfile(self) -> None:
     fname = support.TESTFN + "1"
     with open(fname, "wb") as a, open(fname, "wb") as b:
         self.assertTrue(posixpath.sameopenfile(a.fileno(), b.fileno()))
Пример #3
0
 def update_event(self, inp=-1):
     self.set_output_val(
         0, posixpath.sameopenfile(self.input(0), self.input(1)))