Skip to content

Commit 682fc18

Browse files
committed
fixup! debug: test_basic/StubSession
1 parent 2f616bf commit 682fc18

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

testing/test_assertrewrite.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,9 @@ class StubSession:
12641264

12651265
def isinitpath(self, p: "py.path.local") -> bool:
12661266
ret = p in self._initialpaths
1267-
print("StubSession.isinitpath:", p, self._initialpaths, "=>", ret)
1267+
print("StubSession.isinitpath:", p, type(p), self._initialpaths, "=>", ret)
1268+
print(os.fspath(p))
1269+
__import__("traceback").print_stack(file=sys.stdout)
12681270
return ret
12691271

12701272
def spy_find_spec(name, path):
@@ -1297,6 +1299,7 @@ def fix(): return 1
12971299
self.initial_paths.add(foobar_path)
12981300
print("foobar_path", foobar_path, hash(foobar_path))
12991301
print("hashes", [hash(x) for x in self.initial_paths])
1302+
print("fspaths", [os.fspath(x) for x in self.initial_paths])
13001303
assert foobar_path in self.initial_paths
13011304

13021305
# # conftest files should always be rewritten

0 commit comments

Comments
 (0)