8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df46c78 commit 0974d7bCopy full SHA for 0974d7b
Lib/test/test_glob.py
@@ -6,6 +6,7 @@
6
import unittest
7
import warnings
8
9
+from test import support
10
from test.support import is_wasi, Py_DEBUG
11
from test.support.os_helper import (TESTFN, skip_unless_symlink,
12
can_symlink, create_empty_file, change_cwd)
@@ -515,6 +516,12 @@ def test_selflink(self):
515
516
os.makedirs(tempdir)
517
self.addCleanup(shutil.rmtree, tempdir)
518
with change_cwd(tempdir):
519
+ if support.verbose:
520
+ cwd = os.getcwd()
521
+ print(f"cwd: {cwd} ({len(cwd)} chars)")
522
+ cwdb = os.getcwdb()
523
+ print(f"cwdb: {cwdb!r} ({len(cwdb)} bytes)")
524
+
525
os.makedirs('dir')
526
create_empty_file(os.path.join('dir', 'file'))
527
os.symlink(os.curdir, os.path.join('dir', 'link'))
0 commit comments