Exemplo n.º 1
0
 def test_pep3147(self):
     assert pbts(
         "/usr/lib64/python3.4/__pycache__/__phello__.foo.cpython-34.pyc"
     ) == "/usr/lib64/python3.4/__phello__.foo.py"
     assert pbts(
         "/usr/lib64/python3.4/__pycache__/__phello__.foo.cpython-34.pyo"
     ) == "/usr/lib64/python3.4/__phello__.foo.py"
Exemplo n.º 2
0
 def test_pep0488(self):
     assert pbts(
         "/usr/lib/python3.5/site-packages/__pycache__/pytest.cpython-35.opt-1.pyc"
     ) == "/usr/lib/python3.5/site-packages/pytest.py"
     assert pbts(
         "/usr/lib/python3.5/site-packages/__pycache__/pytest.cpython-35.opt-2.pyc"
     ) == "/usr/lib/python3.5/site-packages/pytest.py"
     assert pbts(
         "/usr/lib/python3.5/site-packages/__pycache__/pytest.cpython-35.pyc"
     ) == "/usr/lib/python3.5/site-packages/pytest.py"
Exemplo n.º 3
0
 def test_py2(self):
     assert pbts("/usr/lib/python2.7/site-packages/_pytest/main.pyc"
                 ) == "/usr/lib/python2.7/site-packages/_pytest/main.py"
     assert pbts("/usr/lib/python2.7/site-packages/_pytest/main.pyo"
                 ) == "/usr/lib/python2.7/site-packages/_pytest/main.py"
Exemplo n.º 4
0
 def test_pep3147(self):
     assert pbts("/usr/lib64/python3.4/__pycache__/__phello__.foo.cpython-34.pyc") == "/usr/lib64/python3.4/__phello__.foo.py"
     assert pbts("/usr/lib64/python3.4/__pycache__/__phello__.foo.cpython-34.pyo") == "/usr/lib64/python3.4/__phello__.foo.py"
Exemplo n.º 5
0
 def test_pep0488(self):
     assert pbts("/usr/lib/python3.5/site-packages/__pycache__/pytest.cpython-35.opt-1.pyc") == "/usr/lib/python3.5/site-packages/pytest.py"
     assert pbts("/usr/lib/python3.5/site-packages/__pycache__/pytest.cpython-35.opt-2.pyc") == "/usr/lib/python3.5/site-packages/pytest.py"
     assert pbts("/usr/lib/python3.5/site-packages/__pycache__/pytest.cpython-35.pyc") == "/usr/lib/python3.5/site-packages/pytest.py"
Exemplo n.º 6
0
 def test_py2(self):
     assert pbts("/usr/lib/python2.7/site-packages/_pytest/main.pyc") == "/usr/lib/python2.7/site-packages/_pytest/main.py"
     assert pbts("/usr/lib/python2.7/site-packages/_pytest/main.pyo") == "/usr/lib/python2.7/site-packages/_pytest/main.py"