
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
@ operator lets the assertion rewrite hang up Β· Issue #1290 Β· pytest-dev/pytest
Description:
Hi there, It seems like the @ operator isn't recognized by something int the assertion_rewrite procedure. With --assert=plain there is no problem. I did some fake test to single out the problem...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- Dating & Relationships
- Education
- Technology & Computing
Content Management System {π}
What CMS is github.com built with?
Github.com operates using 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 4,989,889 paying customers.
The estimated monthly recurring revenue (MRR) is $20,957,532.
The estimated annual recurring revenues (ARR) are $251,490,385.
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 {π}
pyassert, fakematrix, pys, issue, type, tomviner, homesnailvirtualenvsfiplibpythonsitepackagespytestassertionrewritepy, pytestdev, problem, added, pytest, def, python, status, fix, operatorassertion, rewriting, sign, test, return, import, assert, items, frozen, importlibbootstrap, backward, compatibility, issues, projects, operator, closed, linux, usrlibpythonastpy, visit, visitornode, bug, commit, references, testmatrixpy, pytestar, testmultmatoperatornonequal, pyformat, pytestarsafereprpyassert, navigation, pull, requests, actions, security, lets, assertion,
Topics {βοΈ}
/home/tom/dropbox/dellxps-backup/dev/pytest-dev/ast_rewrite_gist /home/snail/comp/python/fluent/pytest_bug_report 5/site-packages/_pytest/assertion/rewrite 5/site-packages/py/_path/local virtualenvs/fip/bin/python3 virtualenvs/fip/lib/python3 py ____________________________________________________ /home/snail/ backward compatibility issues assertion rewrite hang 35d6bbf tomviner mentioned /usr/lib/python3 debian linux stretch assigned labels status 7d10701 nicoddemus closed comment metadata assignees generated rewritten ast features branch type projects milestone 2 critical grave problem type projects users status def __init__ usability issue 1 -- /home/snail/ /home/snail/ backward compatibility fake test test file test test_matrix topic type changelog type addressed type rewrite assertion_rewrite procedure virtualenv activity api change wanted developers carefully noted affects lots strictly involved converted back failing version 100% complete relationships assertion pytest-2 pytest' bug problem fake_matrix class fakematrix assert=plain
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline: @ operator lets the assertion rewrite hang up
articleBody:Hi there,
It seems like the @ operator isn't recognized by something int the assertion_rewrite procedure.
With --assert=plain there is no problem.
I did some fake test to single out the problem in fake_matrix.py:
``` python
class FakeMatrix:
def __init__(self, num):
self.num = num
def __matmul__(self, other):
return self.num * other.num
```
and the test file:
``` python
from fake_matrix import FakeMatrix
def test_multmat_operator():
assert FakeMatrix(2) @ FakeMatrix(3) == 6
```
traceback:
```
platform linux -- Python 3.5.0+, pytest-2.8.5, py-1.4.31, pluggy-0.3.1 -- /home/snail/.virtualenvs/fip/bin/python3.5
cachedir: .cache
rootdir: /home/snail/comp/python/fluent/pytest_bug_report, inifile:
collected 0 items / 1 errors
================================================================= ERRORS =================================================================
____________________________________________________ ERROR collecting test_multmat.py ____________________________________________________
/home/snail/.virtualenvs/fip/lib/python3.5/site-packages/py/_path/local.py:650: in pyimport
__import__(modname)
<frozen importlib._bootstrap>:969: in _find_and_load
???
<frozen importlib._bootstrap>:954: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:892: in _find_spec
???
<frozen importlib._bootstrap>:873: in _find_spec_legacy
???
/home/snail/.virtualenvs/fip/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:143: in find_module
source_stat, co = _rewrite_test(state, fn_pypath)
/home/snail/.virtualenvs/fip/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:290: in _rewrite_test
rewrite_asserts(tree)
/home/snail/.virtualenvs/fip/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:348: in rewrite_asserts
AssertionRewriter().run(mod)
/home/snail/.virtualenvs/fip/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:569: in run
new.extend(self.visit(child))
/usr/lib/python3.5/ast.py:245: in visit
return visitor(node)
/home/snail/.virtualenvs/fip/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:677: in visit_Assert
top_condition, explanation = self.visit(assert_.test)
/usr/lib/python3.5/ast.py:245: in visit
return visitor(node)
/home/snail/.virtualenvs/fip/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:852: in visit_Compare
left_res, left_expl = self.visit(comp.left)
/usr/lib/python3.5/ast.py:245: in visit
return visitor(node)
/home/snail/.virtualenvs/fip/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:761: in visit_BinOp
symbol = binop_map[binop.op.__class__]
E KeyError: <class '_ast.MatMult'>
```
My system is debian linux stretch, and as you can see I'm using Python 3.5.0+, pytest-2.8.5 on a virtualenv
author:
url:https://github.com/Shinkenjoe
type:Person
name:Shinkenjoe
datePublished:2015-12-27T10:56:42.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:2
url:https://github.com/1290/pytest/issues/1290
context:https://schema.org
headline: @ operator lets the assertion rewrite hang up
articleBody:Hi there,
It seems like the @ operator isn't recognized by something int the assertion_rewrite procedure.
With --assert=plain there is no problem.
I did some fake test to single out the problem in fake_matrix.py:
``` python
class FakeMatrix:
def __init__(self, num):
self.num = num
def __matmul__(self, other):
return self.num * other.num
```
and the test file:
``` python
from fake_matrix import FakeMatrix
def test_multmat_operator():
assert FakeMatrix(2) @ FakeMatrix(3) == 6
```
traceback:
```
platform linux -- Python 3.5.0+, pytest-2.8.5, py-1.4.31, pluggy-0.3.1 -- /home/snail/.virtualenvs/fip/bin/python3.5
cachedir: .cache
rootdir: /home/snail/comp/python/fluent/pytest_bug_report, inifile:
collected 0 items / 1 errors
================================================================= ERRORS =================================================================
____________________________________________________ ERROR collecting test_multmat.py ____________________________________________________
/home/snail/.virtualenvs/fip/lib/python3.5/site-packages/py/_path/local.py:650: in pyimport
__import__(modname)
<frozen importlib._bootstrap>:969: in _find_and_load
???
<frozen importlib._bootstrap>:954: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:892: in _find_spec
???
<frozen importlib._bootstrap>:873: in _find_spec_legacy
???
/home/snail/.virtualenvs/fip/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:143: in find_module
source_stat, co = _rewrite_test(state, fn_pypath)
/home/snail/.virtualenvs/fip/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:290: in _rewrite_test
rewrite_asserts(tree)
/home/snail/.virtualenvs/fip/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:348: in rewrite_asserts
AssertionRewriter().run(mod)
/home/snail/.virtualenvs/fip/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:569: in run
new.extend(self.visit(child))
/usr/lib/python3.5/ast.py:245: in visit
return visitor(node)
/home/snail/.virtualenvs/fip/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:677: in visit_Assert
top_condition, explanation = self.visit(assert_.test)
/usr/lib/python3.5/ast.py:245: in visit
return visitor(node)
/home/snail/.virtualenvs/fip/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:852: in visit_Compare
left_res, left_expl = self.visit(comp.left)
/usr/lib/python3.5/ast.py:245: in visit
return visitor(node)
/home/snail/.virtualenvs/fip/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:761: in visit_BinOp
symbol = binop_map[binop.op.__class__]
E KeyError: <class '_ast.MatMult'>
```
My system is debian linux stretch, and as you can see I'm using Python 3.5.0+, pytest-2.8.5 on a virtualenv
author:
url:https://github.com/Shinkenjoe
type:Person
name:Shinkenjoe
datePublished:2015-12-27T10:56:42.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:2
url:https://github.com/1290/pytest/issues/1290
Person:
url:https://github.com/Shinkenjoe
name:Shinkenjoe
url:https://github.com/Shinkenjoe
name:Shinkenjoe
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:2
interactionType:https://schema.org/CommentAction
userInteractionCount:2
External Links {π}(2)
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- Lodash
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