jacobmason avatar jacobmason committed 4e25a36 Merge

merge with trunk

Comments (0)

Files changed (2)

             If ``True`` symbolic links in the source tree result in symbolic
             links in the destination tree otherwise the contents of the files
             pointed to by the symbolic links are copied.
-
-        :param ignore:
-            A callback which gets called with the path of the directory being
-            copied and a list of paths as returned by :func:`os.listdir`.
         """
         shutil.copytree(self, destination, symlinks=symlinks)
 

tests/root/doctest.txt

 
   .. testsetup:: *
 
-     from math import factorial
+     def squared(x):
+     	return x * x
 
   .. doctest::
 
-     >>> factorial(1)
-     1
+     >>> squared(2)
+     4
 
   .. testcode::
 
-     print(factorial(1))
+     print(squared(2))
 
   .. testoutput::
 
-     1
+     4
 
-  >>> factorial(1)
-  1
+  >>> squared(2)
+  4
 
 * options for testcode/testoutput blocks
 
 
   .. testsetup:: group1
 
-     from math import trunc
+     def add(x, y):
+         return x + y
 
-  ``trunc`` is now known in "group1", but not in others.
+
+  ``add`` is now known in "group1", but not in others.
 
   .. doctest:: group1
 
-     >>> trunc(1.1)
-     1
+     >>> add(1, 1)
+     2
 
   .. doctest:: group2
 
-     >>> trunc(1.1)
+     >>> add(1, 1)
      Traceback (most recent call last):
        ...
-     NameError: name 'trunc' is not defined
+     NameError: name 'add' is not defined
 
   Interleaving testcode/testoutput:
 
   .. testcode:: group1
 
-     print(factorial(3))
+     print(squared(3))
 
   .. testcode:: group2
 
-     print(factorial(4))
+     print(squared(4))
 
   .. testoutput:: group1
 
-     6
+     9
 
   .. testoutput:: group2
 
-     24
+     16
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.