Thanks to visit codestin.com Credit goes to github.com
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 19bd069 commit 2821644Copy full SHA for 2821644
1 file changed
Lib/test/test_os.py
@@ -1647,12 +1647,19 @@ def test_deprecated(self):
1647
(os.rmdir, filename),
1648
(os.startfile, filename),
1649
(os.stat, filename),
1650
- (os.symlink, filename, filename),
1651
(os.unlink, filename),
1652
(os.utime, filename),
1653
):
1654
self.assertRaises(DeprecationWarning, func, *args)
1655
+ @support.skip_unless_symlink
1656
+ def test_symlink(self):
1657
+ filename = os.fsencode(support.TESTFN)
1658
+ with warnings.catch_warnings():
1659
+ warnings.simplefilter("error", DeprecationWarning)
1660
+ self.assertRaises(DeprecationWarning,
1661
+ os.symlink, filename, filename)
1662
+
1663
1664
@support.reap_threads
1665
def test_main():
0 commit comments