question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I have this error.

command: mutmut run --paths-to-mutate=$PROJECT --tests-dir=$TESTS_DIR

Traceback (most recent call last):
  File "/usr/local/bin/mutmut", line 5, in <module>
    climain()
  File "/usr/local/lib/python3.5/site-packages/click/core.py", line 695, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.5/site-packages/click/core.py", line 654, in main
    _verify_python3_env()
  File "/usr/local/lib/python3.5/site-packages/click/_unicodefun.py", line 69, in _verify_python3_env
    if locale.lower().endswith(('.utf-8', '.utf8')):
TypeError: a bytes-like object is required, not 'str'


Docker:

Client:
 Version:      18.03.1-ce
 API version:  1.37
 Go version:   go1.9.5
 Git commit:   9ee9f40
 Built:        Thu Apr 26 07:17:20 2018
 OS/Arch:      linux/amd64
 Experimental: false
 Orchestrator: swarm

Server:
 Engine:
  Version:      18.03.1-ce
  API version:  1.37 (minimum version 1.12)
  Go version:   go1.9.5
  Git commit:   9ee9f40
  Built:        Thu Apr 26 07:15:30 2018
  OS/Arch:      linux/amd64
  Experimental: false

Docker Image: amazonlinux:2017.09

requirements.txt:

...
mutmut==1.3.1
pytest==4.2.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JamieYnonancommented, Feb 8, 2019

Thanks @boxed , I changed the command: mutmut run --paths-to-mutate=$PROJECT --tests-dir=$TESTS_DIR --runner="pytest"

I also had a class that gave me problems.

Thanks.

0reactions
boxedcommented, Feb 8, 2019

I’d recommend to put those settings in setup.cfg so you don’t need to remember them and can just run mutmut run.

Read more comments on GitHub >

github_iconTop Results From Across the Web

mutmut - python mutation tester — mutmut documentation
Run mutmut with mutmut run . · Show the mutants with mutmut results · Apply a surviving mutant to disk running mutmut apply...
Read more >
`mutmut` Stops Running After About 100 Mutants
I'm posting this here to help out mutmut 's dev solve this issue, because he doesn't know how to fix it yet.
Read more >
Mutmut: a Python mutation testing system - Medium
Mutmut: a Python mutation testing system ... It's not great because it can't be run in parallel but at least it works and...
Read more >
Mutmut - Ned Batchelder
If a mutation doesn't produce a test failure, then you need to add to ... One nice touch: if you interrupt mutmut, when...
Read more >
Discovering Python mutmut | Blue Sky Junkie
Running mutmut itself to get an initial run against your tests is also ... I won't work through all of them here and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found