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.
2 parents 7eaf98a + c2980eb commit 8e1d59aCopy full SHA for 8e1d59a
testing/test_pytester.py
@@ -710,3 +710,13 @@ def test_error2(bad_fixture):
710
result.assert_outcomes(error=2)
711
712
assert result.parseoutcomes() == {"error": 2}
713
+
714
715
+def test_makefile_joins_absolute_path(testdir: Testdir) -> None:
716
+ absfile = testdir.tmpdir / "absfile"
717
+ if sys.platform == "win32":
718
+ with pytest.raises(OSError):
719
+ testdir.makepyfile(**{str(absfile): ""})
720
+ else:
721
+ p1 = testdir.makepyfile(**{str(absfile): ""})
722
+ assert str(p1) == (testdir.tmpdir / absfile) + ".py"
0 commit comments