diff --git a/src/coffea/__init__.py b/src/coffea/__init__.py index 693b0263e..4b1ce5c40 100644 --- a/src/coffea/__init__.py +++ b/src/coffea/__init__.py @@ -31,16 +31,6 @@ __version__ = version.__version__ -import sys - -if sys.version_info.major < 3: - import warnings - - warnings.warn("coffea only supports python3 as of 1 January 2020!") - warnings.warn( - "If you are using python2 and run into problems please submit a pull request to fix the issue!" - ) - # control severity for utils.deprecate deprecations_as_errors = False diff --git a/tests/test_nanoevents.py b/tests/test_nanoevents.py index 2f34f714a..9bfcdd6b9 100644 --- a/tests/test_nanoevents.py +++ b/tests/test_nanoevents.py @@ -61,18 +61,19 @@ def crossref(events): ) -suffixes = ["root", "parquet"] +suffixes = [ + "root", + # "parquet", +] @pytest.mark.parametrize("suffix", suffixes) def test_read_nanomc(suffix): - pytest.xfail("weird side effect from running other tests... passes by itself") - path = os.path.abspath(f"tests/samples/nano_dy.{suffix}") # parquet files were converted from even older nanoaod nanoversion = NanoAODSchema.v6 if suffix == "root" else NanoAODSchema.v5 factory = getattr(NanoEventsFactory, f"from_{suffix}")( - path, schemaclass=nanoversion + {path: "Events"}, schemaclass=nanoversion ) events = factory.events() @@ -129,13 +130,11 @@ def test_read_nanomc(suffix): def test_read_from_uri(suffix): "Make sure we can properly open the file when a uri is used" - pytest.xfail("weird side effect from running other tests... passes by itself") - path = Path(os.path.abspath(f"tests/samples/nano_dy.{suffix}")).as_uri() nanoversion = NanoAODSchema.v6 if suffix == "root" else NanoAODSchema.v5 factory = getattr(NanoEventsFactory, f"from_{suffix}")( - path, schemaclass=nanoversion + {path: "Events"}, schemaclass=nanoversion ) events = factory.events() @@ -144,13 +143,11 @@ def test_read_from_uri(suffix): @pytest.mark.parametrize("suffix", suffixes) def test_read_nanodata(suffix): - pytest.xfail("weird side effect from running other tests... passes by itself") - path = os.path.abspath(f"tests/samples/nano_dimuon.{suffix}") # parquet files were converted from even older nanoaod nanoversion = NanoAODSchema.v6 if suffix == "root" else NanoAODSchema.v5 factory = getattr(NanoEventsFactory, f"from_{suffix}")( - path, schemaclass=nanoversion + {path: "Events"}, schemaclass=nanoversion ) events = factory.events()