]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
branch merge?
authorBrian Curtin <brian@python.org>
Mon, 13 Jun 2011 21:10:32 +0000 (16:10 -0500)
committerBrian Curtin <brian@python.org>
Mon, 13 Jun 2011 21:10:32 +0000 (16:10 -0500)
1  2 
Lib/test/support.py
Misc/NEWS
Modules/posixmodule.c

index 9c8f6d3dcc69096690928f50e0564130eae55716,b19c698181af9812bec7f7ef6527131183c6e7ff..25aab2e5afb603e9f81d3b80eb302315bded0bf0
@@@ -1487,11 -1487,14 +1487,14 @@@ def can_symlink()
      global _can_symlink
      if _can_symlink is not None:
          return _can_symlink
+     symlink_path = TESTFN + "can_symlink"
      try:
-         os.symlink(TESTFN, TESTFN + "can_symlink")
+         os.symlink(TESTFN, symlink_path)
          can = True
 -    except (OSError, NotImplementedError):
 +    except (OSError, NotImplementedError, AttributeError):
          can = False
+     else:
+         os.remove(symlink_path)
      _can_symlink = can
      return can
  
diff --cc Misc/NEWS
Simple merge
Simple merge