Commits

holger krekel committed 5c050a6 Draft

fix #61 - always pass args[1:] from the mock-call

Comments (0)

Files changed (2)

   (sys.executable) make tox' own setup.py test execute tests with it
   (closes #46)
 
-- change tests to not rely on os.path.expanduser (closes #60)
+- change tests to not rely on os.path.expanduser (closes #60),
+  also make mock session return args[1:] for more precise checking (closes #61)
+  thanks to Barry Warszaw for both.
 
 1.4.2
 -----------------

tests/conftest.py

 
 class pcallMock:
     def __init__(self, args, cwd, env, stdout, stderr, shell):
-        self.args = args
+        self.arg0 = args[0]
+        self.args = args[1:]
         self.cwd = cwd
         self.env = env
         self.stdout = stdout
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.