Rebind a copy of *readtable* before running a test
authorAttila Lendvai <attila.lendvai@gmail.com>
Sat, 2 Sep 2006 11:50:23 +0000 (13:50 +0200)
committerattila.lendvai <attila.lendvai@gmail.com>
Sat, 2 Sep 2006 11:50:23 +0000 (13:50 +0200)
src/run.lisp

index fb78175..59e6455 100644 (file)
@@ -147,7 +147,8 @@ run."))
                                              (abort-test e)
                                              (return-from run-it result-list)))))
                      (restart-case
-                         (funcall (test-lambda test))
+                         (let ((*readtable* (copy-readtable)))
+                           (funcall (test-lambda test)))
                        (retest ()
                          :report (lambda (stream)
                                    (format stream "~@<Rerun the test ~S~@:>" test))