specs: undo chdir in before black by returning to $CWD in after.
* specs/posix_glob_spec.yaml (specify posix.glob): Get current
working directory in before block, and chdir back to it in after
black.
@@ -14,6 +14,11 @@ specify posix.glob:
- before:
glob, MARK = glob.glob, glob.GLOB_MARK
chdir, mkdir, mkdtemp = posix.chdir, posix.mkdir, posix.mkdtemp
+ origwd = posix.getcwd ()
+
+ - after:
+ chdir(origwd)
+
- context with bad arguments:
badargs.diagnose (glob, "(?string, int)")
