Hi!

Somehow, I accidentally created a reverse patch before; here's the
correct one.

- FC
--- a/nose_random/__init__.py	2023-01-04 23:12:59.008028925 +0100
+++ b/nose_random/__init__.py	2023-01-04 23:13:30.304246704 +0100
@@ -51,7 +51,7 @@
 def randomize(n, scenario_generator, seed=12038728732):
     def decorator(test):
         def randomized_test(self):
-            if config.scenario is not None:
+            if config.scenario is not None and config.scenario is not _missing:
                 nseeds = 1
                 seeds = [config.scenario]
             else:
@@ -70,4 +70,4 @@
                     else:
                         raise (type(e), type(e)('%s with scenario %s (%i of %i)' % (e.message, rseed, i+1, nseeds)), sys.exc_info()[2])
         return randomized_test
-    return decorator
\ No newline at end of file
+    return decorator

Reply via email to