
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
Linux terminal garbage when `\x05` occurs in test output. Β· Issue #4397 Β· pytest-dev/pytest
Description:
Include a detailed description of the bug or suggestion After running my parameterized tests with -vvv there was a sequence of mixed ?1;2c and ^[[ characters in terminal promt and test output. It looks like in the screen snippet (output ...
Website Age:
17 years and 9 months (reg. 2007-10-09).
Matching Content Categories {π}
- Technology & Computing
- Transportation
- Education
Content Management System {π}
What CMS is github.com built with?
Github.com is powered by WORDPRESS.
Traffic Estimate {π}
What is the average monthly size of github.com audience?
ππ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,000,019 visitors per month in the current month.
However, some sources were not loaded, we suggest to reload the page to get complete results.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {πΈ}
Subscription Packages {π³}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {π°}
Subscription Packages {π³}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 5,013,426 paying customers.
The estimated monthly recurring revenue (MRR) is $21,056,387.
The estimated annual recurring revenues (ARR) are $252,676,649.
Wordpress Themes and Plugins {π¨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {π}
test, asottile, issue, return, output, pytest, terminal, bytes, occurs, ret, passed, sign, linux, garbage, bug, commented, member, type, problem, merge, code, projects, exbytes, def, python, ronnypfannschmidt, critical, node, parametrize, status, valencodeunicodeescapedecodeascii, navigation, issues, pull, requests, actions, security, closed, description, wlohu, running, characters, character, import, doesnt, presence, pip, environment, ids, ensure,
Topics {βοΈ}
assigned labels status issues due /src/_pytest/compat comment metadata assignees type projects express node metada manually passed id explicit node ids revisit expressing bytes projects milestone py index ead9ffd8 critical grave problem bytes parametrize values /tmp/pytest terminal promt asottile mentioned pytest issue detailed description unicode-escape assert struct users topic code node ids ascii escaped usability issue terminal parametrize type addressed type def test_b pip install test file b'\xff' test output parameterized tests screen snippet character \x05 x05 character printed correctly virtual environment python 3 nonprintable bytes incorrect data environment variables drop python2 bug problem parametrize related affects lots dropping python2 diff --git string_types = bytes
Payment Methods {π}
- Braintree
Questions {β}
- After running my parameterized tests with -vvv there was a sequence of mixed ?
- Already have an account?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:Linux terminal garbage when `\x05` occurs in test output.
articleBody:- [ ] Include a detailed description of the bug or suggestion
After running my parameterized tests with `-vvv` there was a sequence of mixed `?1;2c` and `^[[` characters in terminal promt and test output. It looks like in the screen snippet (output from given example code):

The reason is explained [here](https://www.linuxquestions.org/questions/linux-security-4/1%3B2c-after-using-cat-or-more-on-binary-files-771934/) and it occurs because character `\x05` is interpreted in special way by terminal when running e.g. `cat`.
Also notice that `\x05` character is missing but `\xff` is printed correctly.
**I'm aware that may not be `pytest` issue** but I don't know exacly which upstream should know about it. If you have any suggestions please tell me and I will report them there.
- [ ] Minimal example if possible
Test file which generates this output.
```
import pytest
import struct
@pytest.mark.parametrize('val, ex_bytes', [
pytest.param(1, b'\x01', id="This doesn't test for \x05 presence."),
(5, b'\x05'),
(255, b'\xff'),
])
def test_b(val, ex_bytes):
assert struct.pack('B', val) == ex_bytes
```
- [ ] `pip list` of the virtual environment you are using
Python 3.6.2
pytest 3.9.1
- [ ] pytest and operating system versions
ArchLinux, 4.12.13-1-ARCH
TERM=rxvt-unicode-256color
author:
url:https://github.com/WloHu
type:Person
name:WloHu
datePublished:2018-11-15T11:51:29.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:4
url:https://github.com/4397/pytest/issues/4397
context:https://schema.org
headline:Linux terminal garbage when `\x05` occurs in test output.
articleBody:- [ ] Include a detailed description of the bug or suggestion
After running my parameterized tests with `-vvv` there was a sequence of mixed `?1;2c` and `^[[` characters in terminal promt and test output. It looks like in the screen snippet (output from given example code):

The reason is explained [here](https://www.linuxquestions.org/questions/linux-security-4/1%3B2c-after-using-cat-or-more-on-binary-files-771934/) and it occurs because character `\x05` is interpreted in special way by terminal when running e.g. `cat`.
Also notice that `\x05` character is missing but `\xff` is printed correctly.
**I'm aware that may not be `pytest` issue** but I don't know exacly which upstream should know about it. If you have any suggestions please tell me and I will report them there.
- [ ] Minimal example if possible
Test file which generates this output.
```
import pytest
import struct
@pytest.mark.parametrize('val, ex_bytes', [
pytest.param(1, b'\x01', id="This doesn't test for \x05 presence."),
(5, b'\x05'),
(255, b'\xff'),
])
def test_b(val, ex_bytes):
assert struct.pack('B', val) == ex_bytes
```
- [ ] `pip list` of the virtual environment you are using
Python 3.6.2
pytest 3.9.1
- [ ] pytest and operating system versions
ArchLinux, 4.12.13-1-ARCH
TERM=rxvt-unicode-256color
author:
url:https://github.com/WloHu
type:Person
name:WloHu
datePublished:2018-11-15T11:51:29.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:4
url:https://github.com/4397/pytest/issues/4397
Person:
url:https://github.com/WloHu
name:WloHu
url:https://github.com/WloHu
name:WloHu
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:4
interactionType:https://schema.org/CommentAction
userInteractionCount:4
External Links {π}(4)
- What's the total monthly financial gain of https://github.blog?
- How much profit does https://user-images.githubusercontent.com/22800245/48550480-24ec2780-e8d3-11e8-9586-0ca600d66039.png make?
- What's the profit of https://www.linuxquestions.org/questions/linux-security-4/1%3B2c-after-using-cat-or-more-on-binary-files-771934/?
- What is the monthly revenue of https://www.githubstatus.com/?
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- GSAP
- Lodash
- Moment.js
Emails and Hosting {βοΈ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net