tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

naming20.rst (719B)


      1 .. _naming20:
      2 
      3 New pytest names in 2.0 (flat is better than nested)
      4 ----------------------------------------------------
      5 
      6 If you used older version of the ``py`` distribution (which
      7 included the py.test command line tool and Python name space)
      8 you accessed helpers and possibly collection classes through
      9 the ``py.test`` Python namespaces.  The new ``pytest``
     10 Python module flatly provides the same objects, following
     11 these renaming rules::
     12 
     13    py.test.XYZ          -> pytest.XYZ
     14    py.test.collect.XYZ  -> pytest.XYZ
     15    py.test.cmdline.main -> pytest.main
     16 
     17 The old ``py.test.*`` ways to access functionality remain
     18 valid but you are encouraged to do global renaming according
     19 to the above rules in your test code.