mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +00:00
Fix cross-device link in Python tests
This commit is contained in:
parent
77b70ba193
commit
d25a67f4eb
1 changed files with 4 additions and 2 deletions
|
@ -152,8 +152,10 @@ class UnicodeFileTests(unittest.TestCase):
|
||||||
|
|
||||||
def test_rename(self):
|
def test_rename(self):
|
||||||
for name in self.files:
|
for name in self.files:
|
||||||
os.rename(name, "tmp")
|
tmp = os.environ.get('TMPDIR', '/tmp')
|
||||||
os.rename("tmp", name)
|
pid = os.getpid()
|
||||||
|
os.rename(name, "%s/foobar.%d" % (tmp, pid))
|
||||||
|
os.rename("%s/foobar.%d" % (tmp, pid), name)
|
||||||
|
|
||||||
def test_directory(self):
|
def test_directory(self):
|
||||||
dirname = os.path.join(support.TESTFN, 'Gr\xfc\xdf-\u66e8\u66e9\u66eb')
|
dirname = os.path.join(support.TESTFN, 'Gr\xfc\xdf-\u66e8\u66e9\u66eb')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue