Esempio 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"
Esempio 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"
Esempio 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"
Esempio 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"
Esempio 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"
Esempio 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"