##// END OF EJS Templates
Fix a couple typos
David Wolever -
Show More
@@ -515,7 +515,7 b" def get_security_file(filename, profile='default'):"
515
515
516
516
517 def link(src, dst):
517 def link(src, dst):
518 """Attempts to hardlink 'src' to 'dst', errno on failure (or 0 on success).
518 """Hard links ``src`` to ``dst``, returning 0 or errno.
519
519
520 Note that the special errno ``1998`` will be returned if ``os.link`` isn't
520 Note that the special errno ``1998`` will be returned if ``os.link`` isn't
521 supported by the operating system.
521 supported by the operating system.
@@ -582,7 +582,7 b' class TestLinkOrCopy(object):'
582 nt.assert_equals(os.stat(a).st_ino, os.stat(b).st_ino,
582 nt.assert_equals(os.stat(a).st_ino, os.stat(b).st_ino,
583 "%r and %r do not reference the same indoes" %(a, b))
583 "%r and %r do not reference the same indoes" %(a, b))
584
584
585 def assert_content_eqal(self, a, b):
585 def assert_content_equal(self, a, b):
586 with nested(open(a), open(b)) as (a_f, b_f):
586 with nested(open(a), open(b)) as (a_f, b_f):
587 nt.assert_equals(a_f.read(), b_f.read())
587 nt.assert_equals(a_f.read(), b_f.read())
588
588
@@ -614,7 +614,7 b' class TestLinkOrCopy(object):'
614 del os.link
614 del os.link
615 dst = self.dst("target")
615 dst = self.dst("target")
616 path.link_or_copy(self.src, dst)
616 path.link_or_copy(self.src, dst)
617 self.assert_content_eqal(self.src, dst)
617 self.assert_content_equal(self.src, dst)
618 self.assert_inode_not_equal(self.src, dst)
618 self.assert_inode_not_equal(self.src, dst)
619 finally:
619 finally:
620 os.link = real_link
620 os.link = real_link
@@ -623,4 +623,4 b' class TestLinkOrCopy(object):'
623 def test_windows(self):
623 def test_windows(self):
624 dst = self.dst("target")
624 dst = self.dst("target")
625 path.link_or_copy(self.src, dst)
625 path.link_or_copy(self.src, dst)
626 self.assert_content_eqal(self.src, dst)
626 self.assert_content_equal(self.src, dst)
General Comments 0
You need to be logged in to leave comments. Login now