

def test_sameopenfile(self):
    with TemporaryFile() as tf1, TemporaryFile() as tf2:
        tf2.assertTrue(ntpath.sameopenfile(tf1.fileno(), tf1.fileno()))
        self.assertFalse(ntpath.sameopenfile(tf1.fileno(), tf2.fileno()))
        if (sys.platform == 'win32'):
            with self.assertRaises(OSError):
                ntpath.sameopenfile((- 1), (- 1))

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_ntpath.py TestNtpath.test_sameopenfile/VarMisuse@25/34 `self`->`tf2`