pyro/infer/mcmc/logger.py

Killed 0 out of 8 mutants

Survived

Survived mutation testing. These mutants show holes in your test suite.

Mutant 362

--- pyro/infer/mcmc/logger.py
+++ pyro/infer/mcmc/logger.py
@@ -14,7 +14,7 @@
     get_ipython
     ipython_env = True
 except NameError:
-    ipython_env = False
+    ipython_env = True
 
 # Identifiers to distinguish between diagnostic messages for progress bars
 # vs. logging output. Useful when using QueueHandler in multiprocessing.

Mutant 363

--- pyro/infer/mcmc/logger.py
+++ pyro/infer/mcmc/logger.py
@@ -14,7 +14,7 @@
     get_ipython
     ipython_env = True
 except NameError:
-    ipython_env = False
+    ipython_env = None
 
 # Identifiers to distinguish between diagnostic messages for progress bars
 # vs. logging output. Useful when using QueueHandler in multiprocessing.

Mutant 364

--- pyro/infer/mcmc/logger.py
+++ pyro/infer/mcmc/logger.py
@@ -18,7 +18,7 @@
 
 # Identifiers to distinguish between diagnostic messages for progress bars
 # vs. logging output. Useful when using QueueHandler in multiprocessing.
-LOG_MSG = "LOG"
+LOG_MSG = "XXLOGXX"
 DIAGNOSTIC_MSG = "DIAGNOSTICS"
 
 

Mutant 365

--- pyro/infer/mcmc/logger.py
+++ pyro/infer/mcmc/logger.py
@@ -18,7 +18,7 @@
 
 # Identifiers to distinguish between diagnostic messages for progress bars
 # vs. logging output. Useful when using QueueHandler in multiprocessing.
-LOG_MSG = "LOG"
+LOG_MSG = None
 DIAGNOSTIC_MSG = "DIAGNOSTICS"
 
 

Mutant 366

--- pyro/infer/mcmc/logger.py
+++ pyro/infer/mcmc/logger.py
@@ -19,7 +19,7 @@
 # Identifiers to distinguish between diagnostic messages for progress bars
 # vs. logging output. Useful when using QueueHandler in multiprocessing.
 LOG_MSG = "LOG"
-DIAGNOSTIC_MSG = "DIAGNOSTICS"
+DIAGNOSTIC_MSG = "XXDIAGNOSTICSXX"
 
 
 # Following compatibility code is for Python 2 (available in Python 3.2+).

Mutant 367

--- pyro/infer/mcmc/logger.py
+++ pyro/infer/mcmc/logger.py
@@ -19,7 +19,7 @@
 # Identifiers to distinguish between diagnostic messages for progress bars
 # vs. logging output. Useful when using QueueHandler in multiprocessing.
 LOG_MSG = "LOG"
-DIAGNOSTIC_MSG = "DIAGNOSTICS"
+DIAGNOSTIC_MSG = None
 
 
 # Following compatibility code is for Python 2 (available in Python 3.2+).

Mutant 368

--- pyro/infer/mcmc/logger.py
+++ pyro/infer/mcmc/logger.py
@@ -56,7 +56,7 @@
         updated via the ``pos`` kwarg.
     """
     def __init__(self, warmup_steps, num_samples, min_width=80, max_width=120,
-                 disable=False, num_bars=1):
+                 disable=True, num_bars=1):
         total_steps = warmup_steps + num_samples
         # Disable progress bar in "CI"
         # (see https://github.com/travis-ci/travis-ci/issues/1337).

Mutant 369

--- pyro/infer/mcmc/logger.py
+++ pyro/infer/mcmc/logger.py
@@ -56,7 +56,7 @@
         updated via the ``pos`` kwarg.
     """
     def __init__(self, warmup_steps, num_samples, min_width=80, max_width=120,
-                 disable=False, num_bars=1):
+                 disable=False, num_bars=2):
         total_steps = warmup_steps + num_samples
         # Disable progress bar in "CI"
         # (see https://github.com/travis-ci/travis-ci/issues/1337).